API
This section contains the JSON-RPC API technical documentation for Ethereum wallets.
info
Click here to learn how to authenticate and send JSON-RPC requests.
Endpoint
The JSON-RPC API is exposed at https://api.coinrpc.com/ethereum
.
Transaction Object
Below describes a transaction object
returned by some API methods.
amount
: (string) The amount of tokens transacted.block_number
: (int) The number of the block containing the transaction.null
when transaction is not yet in a block.category
: (string) The type of transaction.SEND
orRECEIVE
.comment
: (string) Optional comment only visible to the wallet owner.confirmed_at
: (int) The unix timestamp of when the transaction was confirmed by the platform.null
when status isPENDING
.created_at
: (int) The unix timestamp of when the transaction was first seen by the platform.currency
: (string) Thecurrency_id
of tokens transacted.guid
: (string) The unique transaction ID on the platform.network_fee
: (string) The network fee paid for the transaction. Paid in ETH.recipient
: (string) The address of the receipient.sender
: (string) The address of the sender.service_fee
: (string) The service fee paid for the transaction. Paid incurrency
. IfSEND
, the service fee is paid in addition to theamount
. IfRECEIVE
, the service fee is paid from theamount
.status
: (string) The status of the transaction.PENDING
,SUCCESS
orFAILED
.tx_hash
: (string) The transaction hash on the blockchain.
{
"amount": "5",
"block_number": 41466463,
"category": "RECEIVE",
"comment": "my transaction",
"confirmed_at": 1698953511,
"created_at": 1698953511,
"currency": "erc20-USDT",
"guid": "ABCD1234ABCD",
"network_fee": "0.135",
"recipient": "0x973807613d28D57D5E4F8a949047549C3BB265ce",
"sender": "0xdecebb456F85c985b55c74a1147bF536B5b8F6Ac",
"service_fee": "0",
"status": "SUCCESS",
"tx_hash": "0x802047ba606d6d9fd34053640e9f2caecbb683d0962ef7df0e1dde629463645a",
}
Execution Object
Below describes a execution object
returned by some API methods.
block_number
: (int) The number of the block containing the execution.null
when execution is not yet in a block.created_at
: (int) The unix timestamp of when the transaction was first seen by the platform.confirmed_at
: (int) The unix timestamp of when the transaction was confirmed by the platform.null
when status isPENDING
.func_name
: (string) The name the execution function.constructor
,createAddresses
, orsweep
.guid
: (string) The unique execution ID on the platform.network_fee
: (string) The network fee paid for the execution. Paid in ETH.notes
: (string) Description of the execution.status
: (string) The status of the execution.PENDING
,SUCCESS
orFAILED
.tx_hash
: (string) The transaction hash on the blockchain.
{
"block_number": 41466463,
"confirmed_at": 1700575680,
"created_at": 1700575618,
"func_name": "createAddresses",
"guid": "C43737E38CF4",
"network_fee": "14.912900",
"notes": "Create 2 addresses",
"status": "SUCCESS",
"tx_hash": "0x07ff8f2f925976b3af11ea26b88323657ef7cb0149f94d98d83f1b7b8391e573",
}