Neon API
This page is wip 👷
TL;DR
Neon provides several endpoints to assist our users to access data related to the Neon Proxy service. Each Proxy may be queried to provide details on:
- Transactions
- Versions
- Configurations
Neon Proxy API service
This page provides the information you need to interact with the Proxy query services.
Authentication
No authentication is required. All publicly-available JSON RPC endpoints are listed on Chainlist.
The curl request below uses P2P's public endpoint. You may select whichever Proxy Operator you prefer, or (coming soon), run your own Proxy server.
Neon API specifications
All API calls use the POST
method.
For example, the following request returns the current Neon Proxy version being provided by P2P:
curl -X POST https://neon-proxy-mainnet.solana.p2p.org \
-H "Content-Type: application/json" \
-d '{"method":"neon_proxyVersion"}'
API services
The following services are available in Neon API V1:
1. Version information
The method neon_versions returns a list of components and their versions provided by the current Neon Platform. Alternatively, you may request each component's version individually.
2. Gas price information
The method neon_gasPrice returns data on gas price.
3. Neon transaction data
- neon_getLogs: returns transaction log data
- neon_getTransactionReceipt: returns transaction receipt data
- neon_getSolanaTransactionByNeonTransaction: returns a list of Solana transactions that correspond to a given Neon transaction
- neon_emulate: returns details of an emultated transaction
4. Parameters
neon_getEvmParams: returns parameters of the Neon EVM program deployed on Solana.
Get versions
- Request
- Response
The neon_versions
method returns a list of all the components and their version as provided by the current Neon Proxy. Alternatively, apply the following methods for granular responses:
neon_cliVersion
returns the current version of Neon EVM CLI used by the Neon Proxyneon_evmVersion
returns the current version of the Neon EVM program deployedneon_proxyVersion
returns the current version of the Neon Proxyneon_solanaVersion
returns the version of the Solana node the Neon Proxy runs on
The JSON and examples demonstrate the verbose request.
Get version request as JSON
{
"type": "object",
"description": "POST request to get current versions for the Proxy tech stack.",
"required": [
"method",
"params",
"jsonrpc"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"method": {
"type": "string",
"enum": [
"neon_versions",
"neon_evmVersion",
"neon_cliVersion",
"neon_solanaVersion",
"neon_proxyVersion"
],
"description": "The method name."
},
"id": {
"type": "string",
"example": "K827qw7r98qwerqwehkjhwe8",
"description": "End-user provided identifier for the request; returned with payload."
}
}
}
The JSON and examples demonstrate the verbose response.
Get version response as JSON
{
"type": "object",
"description": "Response to request for current versions.",
"required": [
"method",
"jsonrpc",
"id",
"result"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"id": {
"type": "string",
"example": "K827qw7r98qwerqwehkjhwe8",
"description": "End-user provided identifier for the request; returned with payload."
},
"result": {
"type": "string",
"description": "Version and Git commit hash. Result depends on method passed in the request.",
"examples": [
{
"proxy": "Neon-proxy/v0.15.26-e902265cdc5eb7bc69cddb0b4eed859fab660a06",
"evm": "Neon/v0.15.13-9a4bbf29359e752336c0a1ff5fcb03e3ad303b7a",
"cli": "Neon-cli/v0.15.13-9a4bbf29359e752336c0a1ff5fcb03e3ad303b7a",
"solana": "Solana/v1.14.18"
}
]
}
}
}
Get Neon Gas price
Neon Gas price may be requested for an individual account or for all accounts, depending on the parameters passed.
- Request
- Response
The JSON for this request schema is available below.
Get Neon Gas price request as JSON
{
"type": "object",
"description": "POST request to get transaction gas price. The payload returned depends on how you form the request using the `params` object. While each property is optional individually, an empty array is not processed. Two example permutations of possible request structures are provided; more are supported.",
"required": [
"method",
"params",
"jsonrpc"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"method": {
"type": "string",
"const": "neon_gasPrice",
"description": "The method name."
},
"id": {
"type": "number",
"examples": [
"OpEgqw7r98qwerqwehkjhwe8"
],
"description": "End-user provided identifier for the request; returned with payload."
},
"params": {
"oneOf": [
{
"type": "object",
"title": "Filter request",
"description": "Exclude `from` address to retrieve common gas price for all accounts.",
"properties": {
"from": {
"type": "string",
"description": "Optional. Account tx request originates from. If not provided, request retrieves common gas price for all accounts.",
"examples": [
"0x348ee8817eA227e52e233668874fA609aA51C83D"
]
},
"nonce": {
"type": "number",
"format": "hexadecimal",
"description": "Optional. Requires `from` property. If `from` is provided but `nonce` is not provided, Neon Proxy uses the transaction counter providing the state of the `from` account as the nonce for the request. If nonce is absent from the request, the Proxy accesses the value of the nonce from the state.",
"examples": [
"0x0"
]
},
"full": {
"type": "boolean",
"description": "Optional. Switch to determine verbose or light response. For verbose, use `true`.",
"examples": [
true,
false
]
}
}
},
{
"type": "object",
"title": "All accounts",
"description": "This request returns the details for all accounts.",
"properties": {
"full": {
"type": "boolean",
"description": "Switch to determine verbose or light response. For verbose, use `true`.",
"example": true
}
}
}
]
}
}
}
The JSON for this response schema is available below.
Get Neon Gas price response as JSON
{
"type": "object",
"description": "Response to request for transaction gas price.",
"required": [
"jsonrpc",
"id",
"result"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"id": {
"type": "string",
"examples": [
"OpEgqw7r98qwerqwehkjhwe8"
],
"description": "End-user provided identifier for the request."
},
"result": {
"type": "array",
"items": {
"type": "object",
"properties": {
"gas_price": {
"description": "Gas fee as hexadecimal value in Galan (NEON). The `gas_price` may be lower than the suggested_gas_price. The `gas_price` may NOT be lower than `min_acceptable_gas_price`, in which case the transaction would be rejected by Neon Proxy. if `gas-price` is less than `min_executable_gas_price`, tx is accepted to Neon Proxy's mempool, to wait untill `min_executable_gas_price` drops to equate with/be less than `gas-price`.",
"type": "string",
"format": "hexadecimal",
"examples": [
"0x0"
]
},
"suggested_gas_price": {
"description": "Returned as a hexadecimal value in Galan (NEON). This price was assigned when the transaction was created. The price is verified to cover Operator fee and slippage.",
"type": "string",
"format": "hexadecimal",
"examples": [
"0x10c2c383c6"
]
},
"min_acceptable_gas_price": {
"description": "Minimum gas price accepted by Neon Proxy, as hexadecimal value in Galan (NEON).",
"type": "string",
"format": "hexadecimal",
"examples": [
"0x3b9aca00"
]
},
"min_executable_gas_price": {
"description": "Minimum executable gas price for execution by the Operator as a hexadecimal value in Galan (NEON). `min_executable_gas_price` is a variable; dependent on the SOL and NEON prices. A tx is executed if gas price is greater than or equal to `min_executable_gas_price`.",
"type": "string",
"format": "hexadecimal",
"examples": [
"0x109c1bb304"
]
},
"min_wo_chainid_acceptable_gas_price": {
"description": "Supports a legacy format (pre EIP-155) to enable tx be accepted without chainid. Minimal gas price for transaction without `chainid` in hexadecimal value in Galan (NEON).",
"type": "string",
"format": "hexadecimal",
"examples": [
"0x2540be400"
]
},
"allow_underpriced_tx_wo_chainid": {
"description": "If true, the Proxy is configured to accept a low gas price for deploying contracts (as per [EIP-1820](https://eips.ethereum.org/EIPS/eip-1820)) to support and simpify the deployer's contract initiation.",
"type": "boolean",
"examples": [
true
]
},
"sol_price_usd": {
"description": "USD value of Sol that Proxy has retrieved from Oracle service. Hexadecimal value in USD.",
"type": "string",
"format": "hexadecimal",
"examples": [
"0x656"
]
},
"neon_price_usd": {
"description": "USD value of NEON that Proxy has retrieved from Oracle service. Hexadecimal value in USD.",
"type": "string",
"format": "hexadecimal",
"examples": [
"0x19"
]
},
"operator_fee": {
"description": "The component of the \"gas fee\" that pays the Operator, hexadecimal value in Galan (NEON).",
"type": "string",
"format": "hexadecimal",
"examples": [
"0x3e8"
]
},
"gas_price_slippage": {
"description": "Token volatility window as hexadecimal value in Galan (NEON).",
"type": "string",
"format": "hexadecimal",
"examples": [
"0x64"
]
}
}
}
}
},
"x-examples": [
{
"title": "Simple response.",
"jsonrpc": "2.0",
"id": "8423kljlj439",
"result": [
{
"gas_price": "0x10c4cf9e80"
}
]
},
{
"title": "Detailed response.",
"jsonrpc": "2.0",
"id": "6423kljlj439",
"result": [
{
"gas_price": "0x0",
"suggested_gas_price": "0x10c2c383c6",
"min_acceptable_gas_price": "0x3b9aca00",
"min_executable_gas_price": "0x109c1bb304",
"min_wo_chainid_acceptable_gas_price": "0x2540be400",
"allow_underpriced_tx_wo_chainid": true,
"accept_reverted_tx_into_mempool": false,
"sol_price_usd": "0x656",
"neon_price_usd": "0x19",
"operator_fee": "0x3e8",
"gas_price_slippage": "0x64"
}
]
}
]
}
Get transaction data
Get transaction logs 👷
The neon_getLogs
method returns transaction log data. This is an extended variant of the eth_getLogs API method.
Request
- Schema
- JSON
{
"type": "object",
"description": "POST request to get detailed information around trasaction execution.",
"required": [
"method",
"jsonrpc",
"params",
"id"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"method": {
"type": "string",
"default": "neon_getLogs",
"description": "The method name."
},
"id": {
"type": "string",
"examples": [
"P927qw7r98qwerqwehkjhwe8"
],
"description": "End-user provided identifier for the request; returned with payload."
},
"params": {
"type": "array",
"items": {
"properties": {
"fromBlock": {
"type": "string",
"description": "Start point for search criteria for log request. Either as hexadecimal block number, or using one of the following tags, pending, earliest, latest, safe, finalized.",
"examples": [
"pending"
]
},
"toBlock": {
"type": "string",
"description": "End point for search criteria for log request. Final (inclusive) block for log request. Either as hexadecimal block number, or using one of the following tags, pending, earliest, latest, safe, finalized.",
"examples": [
"latest"
]
}
}
}
}
}
}
Response
- Schema
- JSON
{
"type": "object",
"description": "Response to request for get logs.",
"required": [
"jsonrpc",
"id",
"result"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"id": {
"type": "string",
"examples": [
"OpEgqw7r98qwerqwehkjhwe8"
],
"description": "End-user provided identifier for the request."
},
"result": {
"type": "object",
"properties": {
"removed": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"data": {
"type": "string"
},
"blockNumber": {
"type": "string"
},
"transactionHash": {
"type": "string"
},
"transactionIndex": {
"type": "string"
},
"transactionLogIndex": {
"type": "string"
},
"logIndex": {
"type": "string"
},
"address": {
"type": "string"
},
"neonEventOrder": {
"type": "string"
},
"neonEventLevel": {
"type": "string"
},
"neonSolHash": {
"type": "string"
},
"neonIxIdx": {
"type": "string"
},
"neonInnerIxIdx": {
"type": "null"
},
"blockHash": {
"type": "string",
"format": "hexidecimal"
}
},
"examples": [
{
"removed": false,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x000000000000000000000000aa4d6f4ff831181a2bbfd4d62260dabdea964ff1"
],
"data": "0x00000000000000000000000000000000000000000000021e19e0c9bab2400000",
"blockNumber": "0x140",
"transactionHash": "0xc8e11f2a75c1b3597c0b87552bf6a2173d3143d46703ba62567a933d22f27360",
"transactionIndex": "0x0",
"transactionLogIndex": "0x0",
"logIndex": "0x0",
"address": "0x8888c50687be1be59cbffce113e3204925ee7e9b",
"neonEventOrder": "0x2",
"neonEventLevel": "0x1",
"neonSolHash": "2vnnRYDg24gbUTknFZaYXb7Re8XSqUvcCG1LTkTxzKJTDbGUUBAc8pmykNmYCccUyA3fSQy7QCr4F3nXsDEqZgeH",
"neonIxIdx": "0x2",
"neonInnerIxIdx": null,
"blockHash": "0xa3380e8141d595d03a906a2566fbf60b7ee279fb2c9048fc058b61fac887d5d6"
}
]
}
}
}
Get transaction receipt 👷
The neon_getTransactionReceipt
method returns transaction receipt data.
Request
- Schema
- JSON
{
"type": "object",
"description": "POST request to get Neon logs.",
"required": [
"method",
"jsonrpc",
"params",
"id"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"method": {
"type": "string",
"default": "neon_getLogs",
"description": "The method name."
},
"id": {
"type": "string",
"examples": [
"P927qw7r98qwerqwehkjhwe8"
],
"description": "End-user provided identifier for the request; returned with payload."
},
"params": []
}
}
Response
- Schema
- JSON
{
"type": "object",
"description": "Response to request for get transaction receipt.",
"required": [
"jsonrpc",
"id",
"result"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"id": {
"type": "string",
"examples": [
"OpEgqw7r98qwerqwehkjhwe8"
],
"description": "End-user provided identifier for the request."
},
"result": {
"type": "array"
}
}
}
Get Solana transactions 👷
The neon_getSolanaTransactionByNeonTransaction
method returns a list of Solana transactions that correspond to a given Neon transaction.
Request
- Schema
- JSON
{
"type": "object",
"description": "POST request to get Solana Transaction by Neon Transaction.",
"required": [
"method",
"jsonrpc",
"params",
"id"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"method": {
"type": "string",
"default": "neon_getSolanaTransactionByNeonTransaction",
"description": "The method name."
},
"id": {
"type": "string",
"examples": [
"P927qw7r98qwerqwehkjhwe8"
],
"description": "End-user provided identifier for the request; returned with payload."
},
"params": {
"type": "array",
"examples": [
"0x9e3b3574099a4fb55b7475955ccc3e0d3f594ee673b6764a8169a3a0492bedf0"
]
}
}
}
Response
- Schema
- JSON
{
"type": "object",
"description": "Response to get Solana Transaction by Neon Transaction.",
"required": [
"jsonrpc",
"id",
"result"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"id": {
"type": "string",
"examples": [
"OpEgqw7r98qwerqwehkjhwe8"
],
"description": "End-user provided identifier for the request."
},
"result": [
"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"
]
}
}
Emulate a Neon transaction 👷
The neon_emulate
method returns details of an emultated transaction.
- Request
- Response
The JSON for this request schema is available below.
Get Neon emulate request as JSON
{
"type": "object",
"description": "Request to emulate a tx.",
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"method": {
"type": "string",
"const": "neon_emulate",
"description": "The method name."
},
"id": {
"type": "number",
"examples": [
"1716308324042"
],
"description": "End-user provided identifier for the request; returned with payload."
},
"params": [
"f88c25851150a01ae482d6d894549b5cb2d324f901aed6938a3838fb9b1089844180a4a59f3e0c00000000000000000000000000000000000000000000000873ee7db76059be9b841d3581bfa036c26c7f3d5f20a34da19cf5796c40be39add518027f40f37a51d215db242074a004402aa547dc02e4ca63f87c1caee2f8c41eb6bdb5eb49fba8507e1383c68dc2"
]
},
"required": [
"id",
"jsonrpc",
"method"
]
}
The JSON for this response schema is available below.
Get Neon emulate response as JSON
{
"type": "object",
"description": "Response to request for emulate.",
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"id": {
"type": "string",
"examples": [
"OpEgqw7r98qwerqwehkjhwe8"
],
"description": "End-user provided identifier for the request."
},
"result": {
"exitCode": "revert",
"externalSolanaCall": false,
"revertBeforeSolanaCall": true,
"revertAfterSolanaCall": false,
"result": "0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000007a45787465726e616c2063616c6c206661696c7320546f6b656e6b65675166655a79694e77414a624e62474b50465843577542766639537336323356513544413a204572726f722070726f63657373696e6720496e737472756374696f6e20303a20637573746f6d2070726f6772616d206572726f723a20307834000000000000",
"numEvmSteps": 441,
"gasUsed": 25000,
"numIterations": 3,
"solanaAccounts": [
{
"pubkey": "7pjifx9FL83gidWbR3KvwwRJb1ThJe3NabhBG3VtjdC3",
"isWritable": true,
"isLegacy": false
},
{
"pubkey": "6gANWp6ZbZpdpt5GhBoCopNAJv1iTnA9kf7L7VRj2ivj",
"isWritable": false,
"isLegacy": false
},
{
"pubkey": "4dWQAaevdp89Jqr5GQV8KTZkG7Un9kvj7QY8fUnJHCgc",
"isWritable": true,
"isLegacy": false
},
{
"pubkey": "EMDBr8bmj7FjSWEmsKeBZZfikuFXhWTJKhQSj41NFLaB",
"isWritable": true,
"isLegacy": false
},
{
"pubkey": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"isWritable": false,
"isLegacy": false
},
{
"pubkey": "DR6toPZGbKRdgfQ7krDRrdbX8NDatuttteuXtAcFm4mF",
"isWritable": false,
"isLegacy": false
},
{
"pubkey": "9WY2FENzKGCDQgoi8dXxJrvAqPqoWpKmnXvu7KgADSeb",
"isWritable": false,
"isLegacy": false
}
]
}
},
"required": [
"jsonrpc",
"id",
"result"
]
}
Get Parameters 👷
The neon_getEvmParams
method returns details of the EVM.
- Request
- Response
The JSON for this request schema is available below.
The neon_getEvmParams
method returns details of the EVM.
{
"type": "object",
"description": "POST request for parameters of the Neon EVM program deployed on Solana.",
"required": [
"method",
"params",
"jsonrpc"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"method": {
"type": "string",
"const": "neon_getEvmParams",
"description": "The method name."
},
"id": {
"type": "number",
"examples": [
"1712927726192"
],
"description": "End-user provided identifier for the request; returned with payload."
}
}
}
The JSON for this response schema is available below.
Get Neon EVM parameters response as JSON
{
"type": "object",
"description": "Response to request for parameters of the Neon EVM program deployed on Solana.",
"required": [
"jsonrpc",
"id",
"result"
],
"properties": {
"jsonrpc": {
"type": "string",
"default": "2.0",
"description": "The JSON RPC version."
},
"id": {
"type": "string",
"examples": [
"OpEgqw7r98qwerqwehkjhwe8"
],
"description": "End-user provided identifier for the request."
},
"result": {
"neonAccountSeedVersion": "3",
"neonMaxEvmStepsInLastIteration": "1",
"neonMinEvmStepsInIteration": "500",
"neonGasLimitMultiplierWithoutChainId": "1000",
"neonHolderMessageSize": "950",
"neonPaymentToTreasury": "5000",
"neonStorageEntriesInContractAccount": "64",
"neonTreasuryPoolCount": "128",
"neonTreasuryPoolSeed": "treasury_pool",
"neonEvmProgramId": "53DfF883gyixYNXnM7s5xhdeyV8mVk9T4i2hGV9vG9io"
}
}
}