ICON ICX JSON-RPC API
v1.0.0https://icx.nownodes.ioSwagger definition for ICON (ICX) node JSON-RPC method icx_call
Authentication
api-keyAuthapiKeyAPI Key: api-key in header
Mainnet
icx_call
Call SCORE method
Executes a read-only call to a SCORE method without creating a transaction.
Body
JSON-RPC request object
jsonrpcstringrequiredJSON-RPC protocol version.
idintegerrequiredUnique identifier for the JSON-RPC request.
methodstringrequiredJSON-RPC method name.
paramsobjectrequiredParameters for SCORE call.
Response
Successful response containing the result of the SCORE method call.
Authorization
api-keyAuthapiKey in headericx_getBalance
Get ICX balance
Returns the ICX balance of a given address.
Body
JSON-RPC request object
idintegerrequiredUnique identifier for the JSON-RPC request.
jsonrpcstringrequiredJSON-RPC protocol version.
methodstringrequiredJSON-RPC method name.
paramsobjectrequiredParameters for balance query.
Response
Successful response containing the ICX balance.
Authorization
api-keyAuthapiKey in headericx_getBlockByHash
Get block by hash
Returns a block from the ICON blockchain by its hash.
Body
JSON-RPC request object
idintegerrequiredUnique identifier for the JSON-RPC request.
jsonrpcstringrequiredJSON-RPC protocol version.
methodstringrequiredJSON-RPC method name.
paramsobjectrequiredParameters for block query.
Response
Successful response containing the requested block.
Authorization
api-keyAuthapiKey in headericx_getBlockByHeight
Get block by height
Returns a block from the ICON blockchain by its height.
Body
JSON-RPC request object
idstringrequiredUnique identifier for the JSON-RPC request.
jsonrpcstringrequiredJSON-RPC protocol version.
methodstringrequiredJSON-RPC method name.
paramsobjectrequiredParameters for block query.
Response
Successful response containing the requested block.
Authorization
api-keyAuthapiKey in headericx_getLastBlock
Get last block
Returns the most recent block from the ICON blockchain.
Body
JSON-RPC request object
idintegerrequiredUnique identifier for the JSON-RPC request.
jsonrpcstringrequiredJSON-RPC protocol version.
methodstringrequiredJSON-RPC method name.
Response
Successful response containing the last block.
Authorization
api-keyAuthapiKey in headericx_getNetworkInfo
Get network information
Returns general information about the ICON network, including network ID, channel, block height, and step price.
Body
JSON-RPC request object
jsonrpcstringrequiredJSON-RPC protocol version.
idintegerrequiredUnique identifier for the JSON-RPC request.
methodstringrequiredJSON-RPC method name.
Response
Successful response containing network information.
Authorization
api-keyAuthapiKey in headericx_getScoreApi
Get SCORE API
Returns the API of a SCORE (contract) at the specified address, including methods and eventlogs.
Body
JSON-RPC request object
jsonrpcstringrequiredJSON-RPC protocol version.
idintegerrequiredUnique identifier for the JSON-RPC request.
methodstringrequiredJSON-RPC method name.
paramsobjectrequiredParameters for SCORE API query.
Response
Successful response containing the SCORE API.
Authorization
api-keyAuthapiKey in headericx_getScoreStatus
Get SCORE status
Returns the current status of a SCORE (smart contract) including type, status, code hash, and owner.
Body
JSON-RPC request object
jsonrpcstringrequiredJSON-RPC protocol version.
idintegerrequiredUnique identifier for the JSON-RPC request.
methodstringrequiredJSON-RPC method name.
paramsobjectrequiredParameters for querying SCORE status.
Response
Successful response containing SCORE status.
Authorization
api-keyAuthapiKey in headericx_getTotalSupply
Get total ICX supply
Returns the total supply of ICX tokens in the ICON blockchain.
Body
JSON-RPC request object
idintegerrequiredUnique identifier for the JSON-RPC request.
jsonrpcstringrequiredJSON-RPC protocol version.
methodstringrequiredJSON-RPC method name.
Response
Successful response containing the total ICX supply.
Authorization
api-keyAuthapiKey in headericx_getTransactionByHash
Get transaction by hash
Returns the detailed transaction data for a given transaction hash.
Body
JSON-RPC request object
jsonrpcstringrequiredJSON-RPC protocol version.
idintegerrequiredUnique identifier for the JSON-RPC request.
methodstringrequiredJSON-RPC method name.
paramsobjectrequiredParameters for querying the transaction by hash.
Response
Successful response containing the transaction data.
Authorization
api-keyAuthapiKey in headericx_getTransactionResult
Get transaction result
Returns the result of a transaction by its hash, including status, logs, and used steps.
Body
JSON-RPC request object
jsonrpcstringrequiredJSON-RPC protocol version.
idintegerrequiredUnique identifier for the JSON-RPC request.
methodstringrequiredJSON-RPC method name.
paramsobjectrequiredParameters for transaction result query.
Response
Successful response containing the transaction result.
Authorization
api-keyAuthapiKey in headericx_sendTransaction
Send transaction
Submits a transaction to the ICON blockchain.
Body
JSON-RPC request object
jsonrpcstringrequiredJSON-RPC protocol version.
idintegerrequiredUnique identifier for the JSON-RPC request.
methodstringrequiredJSON-RPC method name.
paramsobjectrequiredTransaction parameters.
Response
Successful response containing the transaction hash.
Authorization
api-keyAuthapiKey in header