Skip to main content

API

This section contains the JSON-RPC API technical documentation for Solana 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/solana.

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 or RECEIVE.
  • 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 is PENDING.
  • created_at: (int) The unix timestamp of when the transaction was first seen by the platform.
  • currency: (string) The currency_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 SOL.
  • recipient: (string) The address of the receipient.
  • rent_required: (string) The rent required for the transaction. Paid in SOL.
  • service_fee: (string) The service fee paid for the transaction. Paid in currency. If SEND, the service fee is paid in addition to the amount. If RECEIVE, the service fee is paid from the amount.
  • signature: (string) The transaction signature on the blockchain.
  • status: (string) The status of the transaction. PENDING, SUCCESS or FAILED.
{
"amount": "5",
"block_number": 41466463,
"category": "RECEIVE",
"comment": "my transaction",
"confirmed_at": 1698953511,
"created_at": 1698953511,
"currency": "SOL",
"guid": "ABCD1234ABCD",
"network_fee": "0.135",
"recipient": "5Y3otkM2pBZHwBnEr1woXLumyykow8tsEu6LYQ1u8ZJ7",
"rent_required": "0",
"service_fee": "0",
"signature": "5ovuCAHQjo6j8Si26K6rPSr83hm84Dcucxv1yuirBtxZbYwVcDGnkfvGAVzwnaJAsSsBGN3aYzj26XabmAvVxoyn",
"status": "SUCCESS",
}

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.
  • confirmed_at: (int) The unix timestamp of when the transaction was confirmed by the platform. null when status is PENDING.
  • created_at: (int) The unix timestamp of when the transaction was first seen by the platform.
  • func_name: (string) The name the execution function. createPrimaryTokenAddress, createAddresses, or sweep.
  • guid: (string) The unique execution ID on the platform.
  • network_fee: (string) The network fee paid for the execution. Paid in SOL.
  • notes: (string) Description of the execution.
  • rent_required: (string) The rent required for the transaction. Paid in SOL.
  • signature: (string) The transaction signature on the blockchain.
  • status: (string) The status of the execution. PENDING, SUCCESS or FAILED.
{
"block_number": 41466463,
"confirmed_at": 1728658998,
"created_at": 1728658869,
"func_name": "create_addresses",
"guid": "152F1BAAF498",
"network_fee": "0.000005",
"notes": "Create 2 addresses for SOL",
"rent_required": "0.00178176",
"signature": "qpLsK8z2CZeSMoNPuqmyhXW7J3HLd7ArHbzkC6jHG189id64zHkoiRkquCUaPiEoVPt8gYdYeDC6eaYmbp5Kfto",
"status": "SUCCESS",
}