TriportRPC

Polygon JSON-RPC

The Polygon PoS JSON-RPC surface on POST https://triport.io/polygon — the Ethereum-compatible eth_* set plus the Polygon-native bor_* namespace for validator and sprint introspection.

Method / EndpointPOST https://triport.io/polygon
NetworkPolygon (PoS)
Authenticationx-token header (SDK-preferred); see Authentication
Required scope— (tier-gated per method)
Tier / rate limitAny tier; see Rate Limits

How to call

Every method takes the same envelope — only method and params change:

curl https://triport.io/polygon \
  -H "x-token: $TRIPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"bor_getAuthor","params":["latest"]}'

Batching (a JSON array of request objects) is supported; each entry is tier-checked and rate-limited individually.

Support semantics

StatusMeaning
SupportedRouted to an upstream node, result returned unchanged — Ethereum-compatible eth_*, net_*, web3_* plus Polygon-native bor_*.
Not supportedMethods outside the catalog return -32601 (method_unknown).

See Errors for the full error envelope.

Method reference

The pages below are grouped by namespace — the Ethereum-compatible set and the bor_ namespace (bor_getAuthor, bor_getCurrentValidators, bor_getSnapshot, …). Subscriptions live on the WebSocket channel — see Polygon WS.

eth_* 29

POST eth_blockNumber
Returns the latest Polygon block number as a hex-encoded string.
POST eth_call
Executes a read-only smart-contract call against the current (or a historical) Polygon state, returning the raw result without creating a transaction or spending gas.
POST eth_chainId
Returns the Polygon network's EIP-155 chain ID as a hex string — 0x89 (137) on mainnet.
POST eth_estimateGas
Estimates how much gas a transaction would consume on Polygon, without broadcasting it to the network.
POST eth_feeHistory
Returns a window of historical base fees, gas-usage ratios, and priority-fee percentiles for Polygon, used to estimate EIP-1559 fees.
POST eth_gasPrice
Returns the node's current legacy gas-price suggestion, in wei, as a hex string.
POST eth_getBalance
Returns the native MATIC balance of an address, in wei, at a given block.
POST eth_getBlockByHash
Returns a Polygon block, addressed by its 32-byte block hash, with its transactions either fully expanded or as a list of hashes.
POST eth_getBlockByNumber
Returns a single Polygon block selected by block number or a named tag, optionally with every transaction body inlined.
POST eth_getBlockReceipts
Returns every transaction receipt for a single Polygon block in one call — the fast path for block-level indexing.
POST eth_getBlockTransactionCountByHash
Returns the number of transactions in a Polygon block, identified by its block hash.
POST eth_getBlockTransactionCountByNumber
Returns the number of transactions in a Polygon block identified by its number or a block tag.
POST eth_getCode
Returns the compiled bytecode deployed at a Polygon address, or 0x if the address is an externally-owned account (EOA) or holds no code.
POST eth_getFilterChanges
Polls a previously created server-side filter and returns everything that has matched since the last poll.
POST eth_getLogs
Returns the array of event logs on Polygon matching a filter — by block range, contract address, and indexed topics.
POST eth_getProof
Returns a Merkle-Patricia proof that a given account — and optionally specific storage slots — is included in the Polygon state trie at a chosen block.
POST eth_getRootHash (deprecated)
Legacy eth-namespace alias for the Polygon Bor root-hash call; deprecated — use bor_getRootHash instead.
POST eth_getStorageAt
Returns the raw 32-byte value stored at a given storage slot of a contract on Polygon, at a specific block.
POST eth_getTransactionByBlockHashAndIndex
Returns a single Polygon transaction by the hash of its block and its zero-based position within that block.
POST eth_getTransactionByBlockNumberAndIndex
Returns a single Polygon transaction selected by its block (number or tag) and its zero-based position within that block.
POST eth_getTransactionByHash
Returns the transaction object for a given transaction hash on Polygon, or null if the transaction is unknown or still pending.
POST eth_getTransactionCount
Returns the number of transactions sent from a Polygon address — i.e. its nonce — at a given block.
POST eth_getTransactionReceipt
Returns the receipt for a mined Polygon transaction — execution status, gas used, and emitted logs — or null if the transaction has not yet been mined.
POST eth_maxPriorityFeePerGas
Returns the suggested EIP-1559 priority fee (validator tip) for Polygon, in wei, as a hex-encoded string.
POST eth_newBlockFilter
Creates a server-side block filter and returns a filter ID you can poll for newly arrived block hashes.
POST eth_protocolVersion
Returns the current EVM protocol version of the Polygon node as a hex string constant.
POST eth_sendRawTransaction
Broadcasts a signed, RLP-encoded transaction to the Polygon mempool and returns its transaction hash.
POST eth_syncing
Reports whether the Polygon node serving your request is still catching up to the chain head, or fully synced.
POST eth_uninstallFilter
Removes a previously created server-side filter on Polygon, freeing the resource it held on the node.