-
Notifications
You must be signed in to change notification settings - Fork 17
Home
JinGyeong Jeong edited this page Apr 27, 2018
·
24 revisions
- U256
- H160, H256, H512
- Block
- Transaction (nonce, fee, action, networkId)
- SignedTransaction (Transaction, r, s, v)
- Action (type, data)
- 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.
- getBlock(number) => Promise<Block>
- getTransaction(txhash: H256) => Promise<Transaction>
- getTransactions(blockhash: H256) => Promise<Transaction[]>
- getTransactionInvoice(H256) => Promise<Invoice>
- getAssetScheme(address: H256) => Promise<AssetScheme>
- sendSignedTransaction(SignedTransaction) => Promise<number>
- getBalance(address: H160) => Promise<U256>
- getNonce(address: H160) => Promise<U256>
- connectTo(SocketAddr) => Promise<?>
- exchangeKey(SocketAddr) => Promise<?>
- sign(H256) => ?
- blake256 => H256