Home

ICON ICX JSON-RPC API

v1.0.0
Base URL
https://icx.nownodes.io

Swagger definition for ICON (ICX) node JSON-RPC method icx_call

Authentication

api-keyAuthapiKey

API Key: api-key in header

Mainnet

icx_call

Call SCORE method

POST
https://icx.nownodes.io/api/v3

Executes a read-only call to a SCORE method without creating a transaction.

Body

application/json

JSON-RPC request object

jsonrpcstringrequired

JSON-RPC protocol version.

idintegerrequired

Unique identifier for the JSON-RPC request.

methodstringrequired

JSON-RPC method name.

paramsobjectrequired

Parameters for SCORE call.

Show child attributes
fromstring

Address of the caller.

tostring

SCORE address to call.

dataTypestring

Type of data payload.

dataobject

Call data for SCORE method.

Show child attributes
methodstring

Name of the SCORE method to call.

paramsobject

Parameters passed to the SCORE method.

Show child attributes
_ownerstring

Address whose balance is requested.

Response

200OK

Successful response containing the result of the SCORE method call.

Authorization

api-keyAuthapiKey in header

icx_getBalance

Get ICX balance

POST
https://icx.nownodes.io/api/v3

Returns the ICX balance of a given address.

Body

application/json

JSON-RPC request object

idintegerrequired

Unique identifier for the JSON-RPC request.

jsonrpcstringrequired

JSON-RPC protocol version.

methodstringrequired

JSON-RPC method name.

paramsobjectrequired

Parameters for balance query.

Show child attributes
addressstring

ICON address whose balance is requested.

Response

200OK

Successful response containing the ICX balance.

Authorization

api-keyAuthapiKey in header

icx_getBlockByHash

Get block by hash

POST
https://icx.nownodes.io/api/v3

Returns a block from the ICON blockchain by its hash.

Body

application/json

JSON-RPC request object

idintegerrequired

Unique identifier for the JSON-RPC request.

jsonrpcstringrequired

JSON-RPC protocol version.

methodstringrequired

JSON-RPC method name.

paramsobjectrequired

Parameters for block query.

Show child attributes
hashstring

Block hash in hexadecimal format.

Response

200OK

Successful response containing the requested block.

Authorization

api-keyAuthapiKey in header

icx_getBlockByHeight

Get block by height

POST
https://icx.nownodes.io/api/v3

Returns a block from the ICON blockchain by its height.

Body

application/json

JSON-RPC request object

idstringrequired

Unique identifier for the JSON-RPC request.

jsonrpcstringrequired

JSON-RPC protocol version.

methodstringrequired

JSON-RPC method name.

paramsobjectrequired

Parameters for block query.

Show child attributes
heightstring

Block height in hexadecimal format.

Response

200OK

Successful response containing the requested block.

Authorization

api-keyAuthapiKey in header

icx_getLastBlock

Get last block

POST
https://icx.nownodes.io/api/v3

Returns the most recent block from the ICON blockchain.

Body

application/json

JSON-RPC request object

idintegerrequired

Unique identifier for the JSON-RPC request.

jsonrpcstringrequired

JSON-RPC protocol version.

methodstringrequired

JSON-RPC method name.

Response

200OK

Successful response containing the last block.

Authorization

api-keyAuthapiKey in header

icx_getNetworkInfo

Get network information

POST
https://icx.nownodes.io/api/v3

Returns general information about the ICON network, including network ID, channel, block height, and step price.

Body

application/json

JSON-RPC request object

jsonrpcstringrequired

JSON-RPC protocol version.

idintegerrequired

Unique identifier for the JSON-RPC request.

methodstringrequired

JSON-RPC method name.

Response

200OK

Successful response containing network information.

Authorization

api-keyAuthapiKey in header

icx_getScoreApi

Get SCORE API

POST
https://icx.nownodes.io/api/v3

Returns the API of a SCORE (contract) at the specified address, including methods and eventlogs.

Body

application/json

JSON-RPC request object

jsonrpcstringrequired

JSON-RPC protocol version.

idintegerrequired

Unique identifier for the JSON-RPC request.

methodstringrequired

JSON-RPC method name.

paramsobjectrequired

Parameters for SCORE API query.

Show child attributes
addressstring

SCORE (contract) address.

Response

200OK

Successful response containing the SCORE API.

Authorization

api-keyAuthapiKey in header

icx_getScoreStatus

Get SCORE status

POST
https://icx.nownodes.io/api/v3

Returns the current status of a SCORE (smart contract) including type, status, code hash, and owner.

Body

application/json

JSON-RPC request object

jsonrpcstringrequired

JSON-RPC protocol version.

idintegerrequired

Unique identifier for the JSON-RPC request.

methodstringrequired

JSON-RPC method name.

paramsobjectrequired

Parameters for querying SCORE status.

Show child attributes
addressstring

SCORE address.

Response

200OK

Successful response containing SCORE status.

Authorization

api-keyAuthapiKey in header

icx_getTotalSupply

Get total ICX supply

POST
https://icx.nownodes.io/api/v3

Returns the total supply of ICX tokens in the ICON blockchain.

Body

application/json

JSON-RPC request object

idintegerrequired

Unique identifier for the JSON-RPC request.

jsonrpcstringrequired

JSON-RPC protocol version.

methodstringrequired

JSON-RPC method name.

Response

200OK

Successful response containing the total ICX supply.

Authorization

api-keyAuthapiKey in header

icx_getTransactionByHash

Get transaction by hash

POST
https://icx.nownodes.io/api/v3

Returns the detailed transaction data for a given transaction hash.

Body

application/json

JSON-RPC request object

jsonrpcstringrequired

JSON-RPC protocol version.

idintegerrequired

Unique identifier for the JSON-RPC request.

methodstringrequired

JSON-RPC method name.

paramsobjectrequired

Parameters for querying the transaction by hash.

Show child attributes
txHashstring

Transaction hash to query.

Response

200OK

Successful response containing the transaction data.

Authorization

api-keyAuthapiKey in header

icx_getTransactionResult

Get transaction result

POST
https://icx.nownodes.io/api/v3

Returns the result of a transaction by its hash, including status, logs, and used steps.

Body

application/json

JSON-RPC request object

jsonrpcstringrequired

JSON-RPC protocol version.

idintegerrequired

Unique identifier for the JSON-RPC request.

methodstringrequired

JSON-RPC method name.

paramsobjectrequired

Parameters for transaction result query.

Show child attributes
txHashstring

Transaction hash to query.

Response

200OK

Successful response containing the transaction result.

Authorization

api-keyAuthapiKey in header

icx_sendTransaction

Send transaction

POST
https://icx.nownodes.io/api/v3

Submits a transaction to the ICON blockchain.

Body

application/json

JSON-RPC request object

jsonrpcstringrequired

JSON-RPC protocol version.

idintegerrequired

Unique identifier for the JSON-RPC request.

methodstringrequired

JSON-RPC method name.

paramsobjectrequired

Transaction parameters.

Show child attributes
versionstring

Transaction version.

fromstring

Sender address.

tostring

Recipient address.

valuestring

Amount of ICX to send in loop (hexadecimal).

stepLimitstring

Maximum step allowed for the transaction.

timestampstring

Timestamp of the transaction in hexadecimal format.

nidstring

Network ID.

noncestring

Nonce for transaction uniqueness.

signaturestring

Transaction signature.

Response

200OK

Successful response containing the transaction hash.

Authorization

api-keyAuthapiKey in header