CodeChain-io / CodeChain-io/codechain-sdk-js
Throw errors when blockNumber is invalid in ChainRpc
Ouverte
discussion
rpc
- Langage dominant
- TypeScript
- Étoiles
- 26
- Forks
- 14
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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 every `getBalance` and `getNonce`.
The problem is, a type guard is useless if the users use a valid block number only.
Methods using blockNumber parameter
- getBalance
- getNonce
- getRegularKey
- getRegularKeyOwner
- getAsset
- getAssetScheme*
- getBlock
- getBlockHash
- isAssetSpent
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.