This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
### Migration | ||
|
||
celestia-da after v0.13.2 release is deprecated and will no longer be | ||
maintained. | ||
|
||
Since go-da v0.5.0 now supports JSONRPC and celestia-node as of v0.13.0 | ||
implements the DA interface over JSONRPC, clients should migrate to using the | ||
JSONRPC client instead. | ||
|
||
A JSONRPC client requires the dial address and an auth token with a blob write | ||
permission. It can be instantiated as follows: | ||
|
||
```go | ||
import ( | ||
"github.com/rollkit/go-da/proxy/jsonrpc" | ||
) | ||
|
||
// url = "http://localhost:26658" | ||
// auth_token = $(celestia light auth write) | ||
|
||
client, err := jsonrpc.NewClient(ctx, url, auth_token) | ||
client.DA.MaxBlobSize() | ||
// returns 1974272 | ||
``` | ||
|
||
See the [go-da releasenotes](https://github.com/rollkit/go-da/releases/tag/v0.5.0) for details. |