JinGyeong Jeong
JinGyeong Jeong
getTransferredAssets() need a transaction hash, but it's not possible if signatures are unknown.
Proposal: ``` const sdk = new SDK({ server: "ws://..." }); await sdk.rpc.node.ping(); // rejects with Error("Not connected"); await sdk.rpc.connect(); // open await sdk.rpc.node.ping(); // pong await sdk.rpc.disconnect(); // close ```...
Currently, `getBalance` and `getNonce` are able to resolve `null` when no such block exists. (the given blockNumber is too big) For TypeScript users, they should put the type guard for...
`src/rpc/index.ts` Current ``` public sendRpcRequest = (name: string, params: any[]): Promise ``` Patch ``` public sendRpcRequest = (name: string, params: any[], options?: { timeout?: number }): Promise ```
Currently, the below example doesn't work ``` let sdk = new SDK(...); let { getBlock, ... } = sdk.rpc.chain; getBlock("0x123..").then(...) ``` Because of the function context. Changing all the functions...
- [ ] Core - [x] index.ts - [ ] Asset/AssetScheme/Block/Invoice/Parcel/ ... - [x] Key - Rpc - [x] NodeRpc - [x] ChainRpc - [x] NetworkRpc - [x] AccountRpc -...