You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using protobuf types, generate a simple api to abtract all the logic to connect to grpc and encode the payload, with proper typing for incoming/outgoing data
same thing for rest, but for query building the parameters and have all the possible routes with proper
We implemented sdl import from yaml and generator from object to yaml. The generator will have to be re-designed because it currently received an object of the type of the SDL builder form, which is not technically 1:1 with the SDL spec.
Usage
api/grpc
import{ChainSDK}from"@akashnetwork/chain-sdk/chain-sdk"// Using the sdk instanceconstchainSdk=newChainSDK({rest: "https://api.akashnet.net",rpc: "https://rpc.akashnet.net"});// Querying data from api or grpc with typed parameters// https://api.akashnet.net/akash/deployment/v1beta3/deployments/info?id.owner=akash1234&id.dseq=1234;constresponse=awaitaxios.get(chainSdk.rest.deployments.info({owner: "akash1234",dseq: "1234"}));constdeployment=response.data.deployment;// Typed response// Potential grpc usageconstresponse=awaitchainSdk.grpc.deployments.info({owner: "akash1234",dseq: "1234"});
protobuf
// Importing the protobuf typesimport{MsgCreateBid}from"@akashnetwork/chain-sdk/akash/market/v1beta4";
Library Overview
Usage
api/grpc
protobuf
certificates
sdl
The text was updated successfully, but these errors were encountered: