-
Notifications
You must be signed in to change notification settings - Fork 17
Home
- U256
- H160, H256, H512
- Block (header, transaction, ... )
- Parcel (nonce, fee, action, networkId)
- SignedParcel (Action, ECDSASignatures)
- Transaction
- Noop
- Payment
- SetRegularKey
- AssetMint
- AssetTransfer
AssetScheme
Send a ping to codechain RPC server.
Returns a Promise that resolves with a string “pong”.
Get latest block number.
Returns a Promise that resolves with a number.
Get the hash of the block of given number.
Returns a Promise that resolves with a H256.
Get the block of given number or hash
Returns a Promise that resolves with a Block.
Get the parcel of the given hash
Returns a Promise that resolves with a Parcel.
Get the list of parcel in given block number or hash.
Returns a Promise that resolves with a list of Transaction.
Get the invoice of given parcel hash. The second parameter indicates timeout that is to wait until the parcel is included to a block.
Returns a Promise that resolves with a Invoice.
Get the AssetScheme of the given AssetScheme's address.
Returns a Promise that resolves with a AssetScheme.