-
Notifications
You must be signed in to change notification settings - Fork 6
Fullnode HTTP API
Returns the create account transaction raw data
- owner_address (string): Activated account, converted to a hex string.
- account_address (string): New account address, converted to a hex string.
curl -X POST https://mainnet.mcash.network/wallet/createaccount -d '{"owner_address":"32ff35ad32efe8d0b0d3650f6982687140ea96e180", "account_address": "326f377bc42f76d7ed3abb54a2ef6ff24fcf7f7ca3"}'
Returns the block object corresponding to the block height
- num (int): Block height.
curl -X POST https://mainnet.mcash.network/wallet/getblockbynum -d '{"num":68}'
Returns the block object corresponding to the block id
- value (string): Block id.
curl -X POST https://mainnet.mcash.network/wallet/getblockbyid -d '{"value":"000000000000004473dacbb6a6b3b0cabad78c340f3fccb1991b7714bd83b1e0"}'
Returns the latest block synced to the Full Node.
curl -X POST https://mainnet.mcash.network/wallet/getnowblock
Returns a list of block objects
- num (int): Number of blocks to query.
curl -X POST https://mainnet.mcash.network/wallet/getblockbylatestnum -d '{"num":5}'
Returns the transaction object corresponding to the transaction id
- value (string): Transaction id.
curl -X POST https://mainnet.mcash.network/wallet/gettransactionbyid -d '{"value":"649419e0d0fcfcc758fea62878e970d088fffa66f7515a907ecd021009d50277"}'
Returns the transaction info corresponding to the transaction id
- value (string): Transaction id.
curl -X POST https://mainnet.mcash.network/wallet/gettransactioninfobyid -d '{"value":"649419e0d0fcfcc758fea62878e970d088fffa66f7515a907ecd021009d50277"}'