Blockdaemon Documentation
Supported Native Methods
With Ubiquity Native RPC Access API, you can interact with multiple major protocols through their own native APIs.
See the sections below to find:
- Native methods available for each protocol
- Information on how to access native APIs
- Usage examples
Please Note: When calling a method that is not available or does not exist, you will receive the following error message: method not allowed.
Supported Methods by Protocol
Acala
Algorand
Avalanche
Base
Bitcoin
Bitcoin Cash
Celo
Cronos
Dogecoin
Ethereum
Karura
Kusama
Litecoin
NEAR
Oasis
Optimism
Polkadot
Polygon
Solana
Stellar
Tezos
XRP
Acala
In this section you will find out which Acala methods are whitelisted in Ubiquity and how to access them:
- Supported Substrate RPC Methods
- How To Access Acala via Substrate RPC API
- Example Request for Substrate RPC API
- Supported Substrate Sidecar Methods
- How To Access Acala via Substrate Sidecar API
- Example Request for Substrate Sidecar API
The following networks are supported:
- Acala Mainnet
Supported Substrate RPC Methods
You can access Acala via Substrate RPC API. Learn more:
The following methods are allowed in Ubiquity Native Access API:
chain
childstate
- childstate_getKeys
- childstate_getKeysPaged
- childstate_getStorage
- childstate_getStorageEntries
- childstate_getStorageHash
- childstate_getStorageSize
offchain
payment
state
- state_call
- state_getChildReadProof
- state_getKeys
- state_getKeysPaged
- state_getMetadata
- state_getPairs
- state_getReadProof
- state_getRuntimeVersion
- state_getStorage
- state_getStorageHash
- state_getStorageSize
- state_queryStorage
- state_queryStorageAt
- state_subscribeRuntimeVersion
- state_subscribeStorage
- state_traceBlock
system
- system_accountNextIndex
- system_addReservedPeer
- system_chain
- system_chainType
- system_dryRun
- system_health
- system_localListenAddresses
- system_localPeerId
- system_name
- system_nodeRoles
- system_peers
- system_properties
- system_removeReservedPeer
- system_reservedPeers
- system_resetLogFilter
- system_syncState
- system_version
How To Access Acala via Substrate RPC API
Step 1. To access Acala via the available Substrate RPC methods, use the Ubiquity native access endpoint with /para-http-rpc
at the end:
Network: Acala Mainnet
Request Type: POST
https://svc.blockdaemon.com/acala/mainnet/native/para-http-rpc
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Substrate RPC method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request for Substrate RPC API
Here is a cURL example for using system_syncState to get the chainspec running the node, with a sync state, in Acala Mainnet:
curl -X POST \
https://svc.blockdaemon.com/acala/mainnet/native/para-http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "system_syncState", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"result": {
"startingBlock": 1600016,
"currentBlock": 1655014,
"highestBlock": 1655013
},
"id": 1
}
Supported Substrate Sidecar Methods
You can access Acala via Substrate Sidecar API. Learn more:
The following methods are allowed in Ubiquity Native Access API:
accounts
- GET /accounts/{accountId}/asset-approvals
- GET /accounts/{accountId}/asset-balances
- GET /accounts/{accountId}/balance-info
- GET /accounts/{accountId}/staking-info
- GET /accounts/{accountId}/staking-payouts
- GET /accounts/{accountId}/validate
- GET /accounts/{accountId}/vesting-info
blocks
- GET /blocks
- GET /blocks/head
- GET /blocks/head/header
- GET /blocks/{blockId}
- GET /blocks/{blockId}/extrinsics/{extrinsicIndex}
- GET /blocks/{blockId}/header
node
- GET /node/network
- GET /node/transaction-pool
- GET /node/version
pallets
- GET /pallets/assets/{assetId}/asset-info
- GET /pallets/{palletId}/storage
- GET /pallets/{palletId}/storage/{storageItemId}
runtime
- GET /runtime/code
- GET /runtime/metadata
- GET /runtime/spec
- POST /transaction
transaction
- POST /transaction/dry-run
- POST /transaction/fee-estmate
- GET /transaction/material
paras
- GET /paras
- GET /paras/auctions/current
- GET /paras/crowdloans
- GET /paras/leases/current
- GET /paras/{paraId}/crowdloan-info
- GET /paras/{paraId}/lease-info
How To Access Acala via Substrate Sidecar API
Step 1. To access the available Substrate Sidecar methods, use the Ubiquity native access endpoint with /parachain
at the end:
Network: Acala Mainnet
Request Type: GET / POST
https://svc.blockdaemon.com/acala/mainnet/native/parachain
Step 3. Add a Substrate Sidecar method at the end of the query:
https://svc.blockdaemon.com/acala/mainnet/native/parachain/YOUR_METHOD
Step 4. For POST requests, specify the data required by the method in the request body.
Example Request for Substrate Sidecar API
Here is a cURL example for using GET /blocks/head/header to get the header of the most recently finalized block in Acala Mainnet:
curl -X GET \
https://svc.blockdaemon.com/acala/mainnet/native/parachain/blocks/head/header \
-H 'Authorization: Bearer YOUR_API_KEY'
The following is a typical response you will get:
{
"parentHash": "0xe4d87b0d0330fc9e765c8f3b14dddb9805c653aa4e8b9a3f6c3431070d5f2db6",
"number": "1655012",
"stateRoot": "0x5950ea6023e98916c9ed60ec942553a9932a8733b1dfd8f52a52c1d9e37fd60d",
"extrinsicsRoot": "0xa391d3be412cc8328f8b007ae2829335320293a589abfce0046ee58a4d6b8e3b",
"digest": {
"logs": [
{
"preRuntime": [
"0x61757261",
"0x6a9d3f0800000000"
]
},
{
"seal": [
"0x61757261",
"0x9e7d3c52bc61abcf7560292ce41bb2da5242d84bab8365a5e54770f0a38fd15cb622cfe1d48844e2832ff314cb8376803185d33cc2283c4f39bc4922496ed58b"
]
}
]
}
}
Avalanche
In this section you will find out which Avalanche methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Avalanche Mainnet
Supported Avalanche Methods
You can access both Ethereum methods and Avalanche-specific methods. Learn more:
Ethereum C-Chain Methods
- eth_baseFee
- eth_blockNumber
- eth_call
- eth_chainId
- eth_estimateGas
- eth_gasPrice
- eth_getAssetBalance
- eth_getBalance
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getCode
- eth_getLogs
- eth_getRawTransactionByBlockHashAndIndex
- eth_getRawTransactionByBlockNumberAndIndex
- eth_getRawTransactionByHash
- eth_getStorageAt
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionReceipt
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_maxPriorityFeePerGas
- eth_sendRawTransaction
- eth_subscribe
- eth_syncing
- net_version
- net_peerCount
- txpool_content
- txpool_inspect
- txpool_status
- web3_clientVersion
- web3_sha3
Avalanche C-Chain (AVAX) Methods
Avalanche Health Methods
Avalanche Info Methods
How To Access Avalanche API
Step 1. To access the available Avalanche methods, use the following Ubiquity native access endpoint:
Network: Avalanche Mainnet
Request Type: POST
https://svc.blockdaemon.com/avalanche/mainnet/native/YOUR_PATH_PARAMETER
Depending on the method, add one of the following path parameters at the end:
Method | Path parameter |
Ethereum C-Chain | ext-bc-c-eth-http-rpc |
Avalanche C-Chain (AVAX) | ext-bc-c-avax-http-rpc |
Avalanche Health | ext-health-http-rpc |
Avalanche Info | ext-info-http-rpc |
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify an Avalanche method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Requests
Example 1: Ethereum C-Chain Methods
Here is a cURL example for using eth_blockNumber to get the current block number in Avalanche Mainnet:
curl -X \
POST https://svc.blockdaemon.com/avalanche/mainnet/native/ext-bc-c-eth-http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1335404"
}
Example 2: Avalanche C-Chain (AVAX) Methods
Here is a cURL example for using avax.getUTXOs to get the UTXOs that reference a given address in Avalanche Mainnet:
curl -X \
POST https://svc.blockdaemon.com/avalanche/mainnet/native/ext-bc-c-avax-http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "avax.getUTXOs", "params": {"addresses": ["C-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5"], "sourceChain": "X"}}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"result": {
"numFetched": "0",
"utxos": [],
"endIndex": {
"address": "C-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5",
"utxo": "11111111111111111111111111111111LpoYY"
},
"encoding": "hex"
},
"id": 1
}
Example 3: Avalanche Health Methods
Here is a cURL example for using health.health to get the last set of health check results in Avalanche Mainnet:
curl -X \
POST https://svc.blockdaemon.com/avalanche/mainnet/native/ ext-health-http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "health.health", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"result": {
"checks": {
"C": {
"message": {
"consensus": {
"longestRunningBlock": "51.804748ms",
"outstandingBlocks": 1
},
"vm": null
},
"timestamp": "2022-09-22T16:00:01.043148255Z",
"duration": 7344
},
{...more items...}
},
"healthy": true
},
"id": 1
}
Example 4: Avalanche Info Methods
Here is a cURL example for using info.getTxFee to get the fees of the Avalanche Mainnet:
curl -X \
POST https://svc.blockdaemon.com/avalanche/mainnet/native/ ext-info-http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "info.getTxFee", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"result": {
"txFee": "1000000",
"creationTxFee": "10000000",
"createAssetTxFee": "10000000",
"createSubnetTxFee": "1000000000",
"transformSubnetTxFee": "1000000000",
"createBlockchainTxFee": "1000000000",
"addPrimaryNetworkValidatorFee": "0",
"addPrimaryNetworkDelegatorFee": "0",
"addSubnetValidatorFee": "1000000",
"addSubnetDelegatorFee": "1000000"
},
"id": 1
}
Bitcoin
In this section you will find out which Bitcoin methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Bitcoin Mainnet
- Bitcoin Testnet
Supported Bitcoin Methods
You can find Bitcoin API documentation here: Bitcoin API reference
The following methods are allowed in Ubiquity Native Access API:
Blockchain RPCs
- getbestblockhash
- getblock
- getblockchaininfo
- getblockcount
- getblockfilter
- getblockhash
- getblockheader
- getblockstats
- getchaintips
- getchaintxstats
- getdifficulty
- getmempoolancestors
- getmempooldescendants
- getmempoolentry
- getmempoolinfo
- getrawmempool
- gettxout
- gettxoutproof
- gettxoutsetinfo
Rawtransactions RPCs
- createrawtransaction
- decoderawtransaction
- decodescript
- getrawtransaction
- sendrawtransaction
- testmempoolaccept
Util RPCs
How To Access Bitcoin API
Step 1. To access the available Bitcoin methods, use the following Ubiquity native access endpoints:
Network: Bitcoin Mainnet
Request Type: POST
https://svc.blockdaemon.com/bitcoin/mainnet/native
Network: Bitcoin Testnet
Request Type: POST
https://svc.blockdaemon.com/bitcoin/testnet/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Bitcoin method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using getblockcount to get the height of the most-work fully-validated chain in Bitcoin Mainnet:
curl -X POST \
https://svc.blockdaemon.com/bitcoin/mainnet/native \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "getblockcount", "params": []}'
The following is a typical response you will get:
{
"result": 748958,
"error": null,
"id": 1
}
Algorand
In this section you will find out which Algorand methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Algorand Mainnet
Supported Algod Methods
You can access Algorand via Algod REST API. Learn more: Algod REST API reference
The following methods are allowed in Ubiquity Native Access API:
- GET /genesis
- GET /health
- GET /metrics
- GET /swagger.json
- GET /v2/accounts/{address}
- GET /v2/accounts/{address}/applications/{application-id}
- GET /v2/accounts/{address}/assets/{asset-id}
- GET /v2/accounts/{address}/transactions/pending
- GET /v2/applications/{application-id}
- GET /v2/assets/{asset-id}
- GET /v2/blocks/{round}
- GET /v2/blocks/{round}/lightheader/proof
- GET /v2/blocks/{round}/transactions/{txid}/proof
- POST /v2/catchup/{catchpoint}
- DELETE /v2/catchup/{catchpoint}
- GET /v2/ledger/supply
- POST /v2/participation
- GET /v2/participation
- POST /v2/participation/{participation-id}
- GET /v2/participation/{participation-id}
- DELETE /v2/participation/{participation-id}
- POST /v2/shutdown
- GET /v2/stateproofs/{round}
- GET /v2/status
- GET /v2/status/wait-for-block-after/{round}
- POST /v2/teal/compile
- POST /v2/teal/disassemble
- POST /v2/teal/dryrun
- POST /v2/transactions
- GET /v2/transactions/params
- GET /v2/transactions/pending
- GET /v2/transactions/pending/{txid}
- GET /versions
How To Access Algorand via Algod API
Step 1. To access Algorand via the available Algod methods, use the following Ubiquity native access endpoint:
Network: Algorand Mainnet
Request Type: GET / POST / DELETE
https://svc.blockdaemon.com/algorand/mainnet/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Add an Algorand method at the end of the query:
https://svc.blockdaemon.com/algorand/mainnet/YOUR_METHOD
Example Request for Algod API
Here is a cURL example for using GET /v2/ledger/supply to get the current supply reported by the ledger in Algorand Mainnet:
curl -X GET \
https://svc.blockdaemon.com/algorand/mainnet/native/v2/ledger/supply \
-H 'Authorization: Bearer YOUR_API_KEY'
The following is a typical response you will get:
{
"current_round": 22988124,
"online-money": 2388091813708583,
"total-money": 7314443768632736
}
Supported Indexer Methods
You can access Algorand via Indexer REST API. Learn more: Indexer REST API reference
The following methods are allowed in Ubiquity Native Access API:
- GET /health
- GET /v2/accounts
- GET /v2/accounts/{account-id}
- GET /v2/accounts/{account-id}/apps-local-state
- GET /v2/accounts/{account-id}/assets
- GET /v2/accounts/{account-id}/created-applications
- GET /v2/accounts/{account-id}/created-assets
- GET /v2/accounts/{account-id}/transactions
- GET /v2/applications
- GET /v2/applications/{application-id}
- GET /v2/applications/{application-id}/logs
- GET /v2/assets
- GET /v2/assets/{asset-id}
- GET /v2/assets/{asset-id}/balances
- GET /v2/assets/{asset-id}/transactions
- GET /v2/blocks/{round-number}
- GET /v2/transactions
- GET /v2/transactions/{txid}
How To Access Algorand via Indexer API
Step 1. To access Algorand via the available Indexer methods, use the Ubiquity native access endpoint with /indexer
at the end:
Network: Algorand Mainnet
Request Type: GET
https://svc.blockdaemon.com/algorand/mainnet/native/indexer
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Add an Algorand method at the end of the query:
https://svc.blockdaemon.com/algorand/mainnet/indexer/YOUR_METHOD
Step 4. For POST requests, specify the data required by the method in the request body.
Example Request for Indexer API
Here is a cURL example for using GET /health to get the status information of Algorand Mainnet:
curl -X GET \
https://svc.blockdaemon.com/algorand/mainnet/native/indexer/health \
-H 'Authorization: Bearer YOUR_API_KEY'
The following is a typical response you will get:
{
"data": {
"migration-required": false,
"read-only-mode": true
},
"db-available": true,
"is-migrating": false,
"message": "22987920",
"round": 22987920,
"version": "2.12.1"
}
Base
This section contains the Base methods that are available in Ubiquity and how to access them:
The following networks are supported:
- Base Testnet
Supported Base Methods
You can access Base via Ethereum API. Learn more:
The following methods are allowed in Ubiquity Native Access API:
- eth_blockNumber
- eth_call
- eth_chainId
- eth_estimateGas
- eth_feeHistory
- eth_gasPrice
- eth_getBalance
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getCode
- eth_getFilterChanges
- eth_getFilterLogs
- eth_getLogs
- eth_getProof
- eth_getStorageAt
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionReceipt
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_maxPriorityFeePerGas
- eth_protocolVersion
- eth_sendRawTransaction
- eth_syncing
- net_version
- txpool_content
- txpool_inspect
- txpool_status
- web3_clientVersion
- web3_sha3
Additional Optimism Methods Supported by Base
- optimism_outputAtBlock
- optimism_rollupConfig
- optimism_syncStatus
- optimism_version
How To Access Base API
Step 1.
- To access the available Base methods, use the Ubiquity native access endpoint with
/http-rpc
at the end. - To access the available Optimism methods, use the Ubiquity native access endpoint with
/op-http-rpc
at the end.
Network: Base Testnet
Request Type: POST
https://svc.blockdaemon.com/base/testnet/native/http-rpc
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Base method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using eth_blockNumber to get the current block number in Base Testnet:
curl -X \
POST https://svc.blockdaemon.com/base/testnet/native/http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x17ba022"
}
Example Request Using Optimism Methods
Here is a cURL example to get the current optimism version:
curl -X \
POST https://svc.blockdaemon.com/base/testnet/native/op-http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "optimism_version", "params": []}'
Bitcoin Cash
In this section you will find out which Bitcoin Cash methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Bitcoin Cash Mainnet
- Bitcoin Cash Testnet
Supported Bitcoin Cash Methods
You can find Bitcoin Cash API documentation here: Bitcoin Cash API reference
The following methods are allowed in Ubiquity Native Access API:
Blockchain RPCs
- getbestblockhash
- getblock
- getblockchaininfo
- getblockcount
- getblockhash
- getblockheader
- getblockstats
- getchaintips
- getchaintxstats
- getdifficulty
- getmempoolancestors
- getmempooldescendants
- getmempoolentry
- getmempoolinfo
- getrawmempool
- gettxout
- gettxoutproof
- gettxoutsetinfo
- createrawtransaction
- decoderawtransaction
Rawtransactions RPCs
Util RPCs
How To Access Bitcoin Cash API
Step 1. To access the available Bitcoin Cash methods, use the following Ubiquity native access endpoints:
Network: Bitcoin Cash Mainnet
Request Type: POST
https://svc.blockdaemon.com/bitcoincash/mainnet/native
Network: Bitcoin Cash Testnet
Request Type: POST
https://svc.blockdaemon.com/bitcoincash/testnet/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Bitcoin Cash method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using getblockcount to get the height of the most-work fully-validated chain in Bitcoin Cash Mainnet:
curl -X POST \
https://svc.blockdaemon.com/bitcoincash/mainnet/native \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "getblockcount", "params": []}'
The following is a typical response you will get:
{
"result": 752780,
"error": null,
"id": 1
}
Celo
In this section you will find out which Celo methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Celo Mainnet
Supported Celo Methods
You can access Celo via Ethereum API. Learn more:
The following methods are allowed in Ubiquity Native Access API:
- eth_blockNumber
- eth_call
- eth_chainId
- eth_estimateGas
- eth_gasPrice
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getCode
- eth_getFilterChanges
- eth_getFilterLogs
- eth_getLogs
- eth_getProof
- eth_getStorageAt
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionReceipt
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_maxPriorityFeePerGas
- eth_sendRawTransaction
- web3_clientVersion
How To Access Celo API
Step 1. To access the available Celo methods, use the Ubiquity native access endpoint with /http-rpc
at the end:
Network: Celo Mainnet
Request Type: POST
https://svc.blockdaemon.com/celo/mainnet/native/http-rpc
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Celo method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using eth_blockNumber to get the current block number in Celo Mainnet:
curl -X \
POST https://svc.blockdaemon.com/celo/mainnet/native/http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xe167fc"
}
Cronos
In this section you will find out which Cronos methods are whitelisted in Ubiquity and how to access them:
- Supported Tendermint Methods
- How To Access Cronos via Tendermint RPC API
- Example Request for Tendermint RPC API
- How To Access Cronos via Tendermint REST API
- Example Request for Tendermint REST API
The following networks are supported:
- Cronos Mainnet
Supported Cronos Methods
You can access Cronos via Ethereum API. Learn more: Ethereum API reference
- eth_blockNumber
- eth_call
- eth_chainId
- eth_estimateGas
- eht_feeHistory
- eth_gasPrice
- eth_getBalance
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getCode
- eth_getFilterChanges
- eth_getFilterLogs
- eth_getLogs
- eth_getStorageAt
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionReceipt
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_maxPriorityFeePerGas
- eth_sendRawTransaction
- net_version
- web3_clientVersion
How To Access Cronos via Ethereum API
Step 1. To access the available Ethereum methods, use the Ubiquity native access endpoint with http-rpc
at the end:
Network: Cronos Mainnet
Request Type: POST
https://svc.blockdaemon.com/cronos/mainnet/native/http-rpc
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify an Ethereum method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using eth_blockNumber to get the current block number in Cronos Mainnet:
curl -X \
POST https://svc.blockdaemon.com/cronos/mainnet/native/http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x22105c3"
}
Supported Tendermint Methods
You can access Cronos via Tendermint RPC API. Learn more: Tendermint API reference
- abci_info
- abci_query
- block
- block_by_hash
- block_results
- block_search
- blockchain
- broadcast_tx_async
- broadcast_tx_sync
- commit
- consensus_params
- consensus_state
- dump_consensus_state
- genesis
- health
- net_info
- num_unconfirmed_txs
- status
- tx
- tx_search
- unconfirmed_txs
- validators
How To Access Cronos via Tendermint RPC API
Step 1. To access the available Tendermint methods, use the Ubiquity native access endpoint with tendermint-rpc
at the end:
Network: Cronos Mainnet
Request Type: POST
https://svc.blockdaemon.com/cronos/mainnet/native/tendermint-rpc
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Tendermint method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x558153"
}}
Example Request
Here is a cURL example for using health to get a node heartbeat for Cronos Mainnet:
curl -X \
POST https://svc.blockdaemon.com/cronos/mainnet/native/tendermint-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "health", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": 0,
"result": {}
}
How To Access Cronos via Tendermint REST API
Step 1. To access the available Tendermint methods, use the Ubiquity native access endpoint with tendermint-rest
at the end:
Network: Cronos Mainnet
Request Type: GET
https://svc.blockdaemon.com/cronos/mainnet/native/tendermint-rest
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Tendermint method at the end of the query:
https://svc.blockdaemon.com/cronos/mainnet/native/tendermint-rest/YOUR_METHOD
Example Request
Here is a cURL example for using health to get a node heartbeat for Cronos Mainnet:
curl -X GET \
https://svc.blockdaemon.com/cronos/mainnet/native/tendermint-rest/health \
-H 'Authorization: Bearer YOUR_API_KEY'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": 0,
"result": {}
}
Dogecoin
In this section you will find out which Dogecoin methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Dogecoin Mainnet
- Dogecoin Testnet
Supported Dogecoin Methods
Dogecoin uses the Bitcoin API. Learn more: Bitcoin API reference
The following methods are allowed in Ubiquity Native Access API:
Blockchain RPCs
- getbestblockhash
- getblock
- getblockchaininfo
- getblockcount
- getblockhash
- getblockheader
- getchaintips
- getchaintxstats
- getdifficulty
- getmempoolancestors
- getmempooldescendants
- getmempoolentry
- getmempoolinfo
- getrawmempool
- gettxout
- gettxoutproof
- gettxoutsetinfo
Rawtransactions RPCs
Util RPCs
How To Access Dogecoin API
Step 1. To access the available Dogecoin methods, use the following Ubiquity native access endpoints:
Network: Dogecoin Mainnet
Request Type: POST
https://svc.blockdaemon.com/dogecoin/mainnet/native
Network: Dogecoin Testnet
Request Type: POST
https://svc.blockdaemon.com/dogecoin/testnet/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Dogecoin method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using getblockcount to get the height of the most-work fully-validated chain in Dogecoin Mainnet:
curl -X POST \
https://svc.blockdaemon.com/dogecoin/mainnet/native \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "getblockcount", "params": []}'
The following is a typical response you will get:
{
"result": 4343995,
"error": null,
"id": 1
}
Ethereum
In this section you will find out which Ethereum methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Ethereum Mainnet
- Goerli Testnet
- Ropsten Testnet
Supported Ethereum Methods
You can find Ethereum API documentation here: Ethereum API reference
The following methods are allowed in Ubiquity Native Access API:
- debug_traceBlockByNumber
Note:This method is allowed only with certain parameters. You need to specify the block number or tag and thecallTracer
tracer type, e.g.:"params": ["latest", {"tracer": "callTracer"}]
- eth_blockNumber
- eth_call
- eth_chainId
- eth_estimateGas
- eth_feeHistory
- eth_gasPrice
- eth_getBalance
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getCode
- eth_getFilterChanges
- eth_getFilterLogs
- eth_getLogs
- eth_getProof
- eth_getStorageAt
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionReceipt
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_maxPriorityFeePerGas
- eth_protocolVersion
- eth_sendRawTransaction
- net_version
- web3_clientVersion
How To Access Ethereum API
Step 1. To access the available Ethereum methods, use the following Ubiquity native access endpoints:
Network: Ethereum Mainnet
Request Type: POST
https://svc.blockdaemon.com/ethereum/mainnet/native
Network: Ethereum Goerli
Request Type: POST
https://svc.blockdaemon.com/ethereum/goerli/native
Network: Ethereum Ropsten
Request Type: POST
https://svc.blockdaemon.com/ethereum/ropsten/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify an Ethereum method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using eth_blockNumber to get the current block number in Ethereum Mainnet:
curl -X POST \
https://svc.blockdaemon.com/ethereum/mainnet/native \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xe9c344"
}
Karura
In this section you will find out which Karura methods are whitelisted in Ubiquity and how to access them:
- Supported Substrate RPC Methods
- How To Access Karura via Substrate RPC API
- Example Request for Substrate RPC API
- Supported Substrate Sidecar Methods
- How To Access Karura via Substrate Sidecar API
- Example Request for Substrate Sidecar API
The following networks are supported:
- Karura Mainnet
Supported Substrate RPC Methods
You can access Karura via Substrate RPC API. Learn more:
The following methods are allowed in Ubiquity Native Access API:
chain
childstate
- childstate_getKeys
- childstate_getKeysPaged
- childstate_getStorage
- childstate_getStorageEntries
- childstate_getStorageHash
- childstate_getStorageSize
contracts
- contracts_call
- contracts_getStorage
- contracts_instantiate
- contracts_rentProjection
- contracts_upload_code
GrandpaAPI
mmr
offchain
payment
rpc
state
- state_call
- state_getChildKeys
- state_getChildReadProof
- state_getChildStorage
- state_getChildStorageHash
- state_getChildStorageSize
- state_getKeys
- state_getKeysPaged
- state_getMetadata
- state_getPairs
- state_getReadProof
- state_getRuntimeVersion
- state_getStorage
- state_getStorageHash
- state_getStorageSize
- state_queryStorage
- state_queryStorageAt
- state_subscribeRuntimeVersion
- state_subscribeStorage
- state_traceBlock
- state_trieMigrationStatus
syncstate
system
- system_accountNextIndex
- system_addReservedPeer
- system_chain
- system_chainType
- system_dryRun
- system_health
- system_localListenAddresses
- system_localPeerId
- system_name
- system_networkState
- system_nodeRoles
- system_peers
- system_properties
- system_removeReservedPeer
- system_reservedPeers
- system_resetLogFilter
- system_syncState
- system_version
How To Access Karura via Substrate RPC API
Step 1. To access Karura via the available Substrate RPC methods, use the Ubiquity native access endpoint with /para-http-rpc
at the end:
Network: Karura Mainnet
Request Type: POST
https://svc.blockdaemon.com/karura/mainnet/native/para-http-rpc
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Substrate RPC method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request for Substrate RPC API
Here is a cURL example for using system_syncState to get the chainspec running the node, with a sync state, in Karura Mainnet:
curl -X POST \
https://svc.blockdaemon.com/karura/mainnet/native/para-http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "system_syncState", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"result": {
"startingBlock": 2414982,
"currentBlock": 2461542,
"highestBlock": 2461542
},
"id": 1
}
Supported Substrate Sidecar Methods
You can access Karura via Substrate Sidecar API. Learn more:
The following methods are allowed in Ubiquity Native Access API:
accounts
- GET /accounts/{accountId}/asset-approvals
- GET /accounts/{accountId}/asset-balances
- GET /accounts/{accountId}/balance-info
- GET /accounts/{accountId}/staking-info
- GET /accounts/{accountId}/staking-payouts
- GET /accounts/{accountId}/validate
- GET /accounts/{accountId}/vesting-info
blocks
- GET /blocks
- GET /blocks/head
- GET /blocks/head/header
- GET /blocks/{blockId}
- GET /blocks/{blockId}/extrinsics/{extrinsicIndex}
- GET /blocks/{blockId}/header
node
- GET /node/network
- GET /node/transaction-pool
- GET /node/version
pallets
- GET /pallets/assets/{assetId}/asset-info
- GET /pallets/staking/progress
- GET /pallets/{palletId}/storage
- GET /pallets/{palletId}/storage/{storageItemId}
runtime
- GET /runtime/code
- GET /runtime/metadata
- GET /runtime/spec
paras
- GET /paras
- GET /paras/auctions/current
- GET /paras/crowdloans
- GET /paras/leases/current
- GET /paras/{paraId}/crowdloan-info
- GET /paras/{paraId}/lease-info
transaction
- POST /transaction
- POST /transaction/dry-run
- POST /transaction/fee-estmate
- GET /transaction/material
How To Access Karura via Substrate Sidecar API
Step 1. To access the available Substrate Sidecar methods, use the Ubiquity native access endpoint with /parachain
at the end:
Network: Karura Mainnet
Request Type: GET / POST
https://svc.blockdaemon.com/karura/mainnet/native/parachain
Step 3. Add a Substrate Sidecar method at the end of the query:
https://svc.blockdaemon.com/karura/mainnet/native/parachain/YOUR_METHOD
Step 4. For POST requests, specify the data required by the method in the request body.
Example Request for Substrate Sidecar API
Here is a cURL example for using GET /blocks/head/header to get the header of the most recently finalized block in Karura Mainnet:
curl -X GET \
https://svc.blockdaemon.com/karura/mainnet/native/parachain/blocks/head/header \
-H 'Authorization: Bearer YOUR_API_KEY'
The following is a typical response you will get:
{
"parentHash": "0x46a11082a6696153f35414e2f62d2258d4509d6ab6ca7a03728dcc707efa053e",
"number": "2461599",
"stateRoot": "0xd14cbc39637c61537f54f759ef2b5450250cf171901858ae23a2cb1f9ada7d1c",
"extrinsicsRoot": "0xca110fe695be5a5b2878508e2faadf82bbcdf117f06e5432334d262bdfb5091b",
"digest": {
"logs": [
{
"preRuntime": [
"0x61757261",
"0x659d3f0800000000"
]
},
{
"seal": [
"0x61757261",
"0x3e30c6cc4394f19535ff198997e886f745e813ea9ba025403d27797d39a0356e8af719a793e58698441abbc1214df4ed81fb7194d01846af2aaf430c25513083"
]
}
]
}
}
Kusama
In this section you will find out which Kusama methods are whitelisted in Ubiquity and how to access them:
- Supported Substrate RPC Methods
- How To Access Kusama via Substrate RPC API
- Example Request for Substrate RPC API
- Supported Substrate Sidecar Methods
- How To Access Kusama via Substrate Sidecar API
- Example Request for Substrate Sidecar API
The following networks are supported:
- Kusama Mainnet
Supported Substrate RPC Methods
You can access Kusama via Substrate RPC API. Learn more:
The following methods are allowed in Ubiquity Native Access API:
chain
childstate
- childstate_getKeys
- childstate_getKeysPaged
- childstate_getStorage
- childstate_getStorageEntries
- childstate_getStorageHash
- childstate_getStorageSize
contracts
- contracts_call
- contracts_getStorage
- contracts_instantiate
- contracts_rentProjection
- contracts_upload_code
GrandpaApi
mmr
offchain
payment
rpc
state
- state_call
- state_getChildKeys
- state_getChildReadProof
- state_getChildStorage
- state_getChildStorageHash
- state_getChildStorageSize
- state_getKeys
- state_getKeysPaged
- state_getMetadata
- state_getPairs
- state_getReadProof
- state_getRuntimeVersion
- state_getStorage
- state_getStorageHash
- state_getStorageSize
- state_queryStorage
- state_queryStorageAt
- state_subscribeRuntimeVersion
- state_subscribeStorage
- state_traceBlock
- state_trieMigrationStatus
syncstate
system
- system_accountNextIndex
- system_addReservedPeer
- system_chain
- system_chainType
- system_dryRun
- system_health
- system_localListenAddresses
- system_localPeerId
- system_name
- system_networkState
- system_nodeRoles
- system_peers
- system_properties
- system_removeReservedPeer
- system_reservedPeers
- system_resetLogFilter
- system_syncState
- system_version
How To Access Kusama via Substrate RPC API
Step 1. To access Kusama via the available Substrate RPC methods, use the Ubiquity native access endpoint with /http-rpc
at the end:
Network: Kusama Mainnet
Request Type: POST
https://svc.blockdaemon.com/kusama/mainnet/native/http-rpc
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Substrate RPC method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request for Substrate RPC API
Here is a cURL example for using system_syncState to get the chainspec running the node, with a sync state, in Kusama Mainnet:
curl -X POST \
https://svc.blockdaemon.com/kusama/mainnet/native/http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "system_syncState", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"result": {
"startingBlock": 11614494,
"currentBlock": 11616224
},
"id": 1
}
Supported Substrate Sidecar Methods
You can access Kusama via Substrate Sidecar API. Learn more:
The following methods are allowed in Ubiquity Native Access API:
accounts
- GET /accounts/{accountId}/asset-approvals
- GET /accounts/{accountId}/asset-balances
- GET /accounts/{accountId}/balance-info
- GET /accounts/{accountId}/staking-info
- GET /accounts/{accountId}/staking-payouts
- GET /accounts/{accountId}/validate
- GET /accounts/{accountId}/vesting-info
runtime
- GET /blocks
- GET /blocks/head
- GET /blocks/head/header
- GET /blocks/{blockId}
- GET /blocks/{blockId}/extrinsics/{extrinsicIndex}
- GET /blocks/{blockId}/header
node
- GET /node/network
- GET /node/transaction-pool
- GET /node/version
pallets
- GET /pallets/assets/{assetId}/asset-info
- GET /pallets/staking/progress
- GET /pallets/{palletId}/storage
- GET /pallets/{palletId}/storage/{storageItemId}
runtime
- GET /runtime/code
- GET /runtime/metadata
- GET /runtime/spec
paras
- GET /paras
- GET /paras/auctions/current
- GET /paras/crowdloans
- GET /paras/leases/current
- GET /paras/{paraId}/crowdloan-info
- GET /paras/{paraId}/lease-info
transaction
- POST /transaction
- POST /transaction/dry-run
- POST /transaction/fee-estmate
- GET /transaction/material
How To Access Kusama via Substrate Sidecar API
Step 1. To access the available Substrate Sidecar methods, use the following Ubiquity native access endpoint:
Network: Kusama Mainnet
Request Type: GET / POST
https://svc.blockdaemon.com/kusama/mainnet/native
Step 3. Add a Substrate Sidecar method at the end of the query:
https://svc.blockdaemon.com/kusama/mainnet/native/YOUR_METHOD
Step 4. For POST requests, specify the data required by the method in the request body.
Example Request for Substrate Sidecar API
Here is a cURL example for using GET /blocks/head/header to get the header of the most recently finalized block in Kusama Mainnet:
curl -X GET \
https://svc.blockdaemon.com/kusama/mainnet/native/blocks/head/header \
-H 'Authorization: Bearer YOUR_API_KEY'
The following is a typical response you will get:
{
"parentHash": "0xd2321a7ffc86663a202b57f3db042a6b90ea4617d9fd64ad153af36aa62c9274",
"number": "14017588",
"stateRoot": "0x0ad4d1716a77421bb2e254d0df548fc1c5ad6081057be9797534b02ef394daa8",
"extrinsicsRoot": "0xde3f7437ff01e80efdd23c3172b2171ad40852dc7e881c4fff0072b097f1b650",
"digest": {
"logs": [
{
"preRuntime": [
"0x42414245",
"0x03d6000000590b7f1000000000964cad717dc1614e72ea13894665e656e7dc2e16fe8a5397fb7b71170644a300c2344d0914b407b0fd0c7ae72403025946a2be45eeadd9339c516ccf05f5c80bb7e32a535aa0aa82d015b315ebc99d100e512976d9a2c9aba8d7b6d15793cd0b"
]
},
{
"seal": [
"0x42414245",
"0x68778ac227550d204f3c541dd07bc3266b41a0d0ca4dc6e5a06cb4c954585d53a61e56d2be99190fa24d6c8e6cb24ac0870ebb3aa325fae8817c7d46c27ca181"
]
}
]
}
}
Litecoin
In this section you will find out which Litecoin methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Litecoin Mainnet
- Litecoim Testnet
Supported Litecoin Methods
Litecoin uses the Bitcoin API. Learn more: Bitcoin API reference
The following methods are allowed in Ubiquity Native Access API:
Blockchain RPCs
- getbestblockhash
- getblock
- getblockfilter
- getblockchaininfo
- getblockcount
- getblockhash
- getblockheader
- getblockstats
- getchaintips
- getchaintxstats
- getdifficulty
- getmempoolancestors
- getmempooldescendants
- getmempoolentry
- getmempoolinfo
- getrawmempool
- gettxout
- gettxoutproof
- gettxoutsetinfo
Rawtransactions RPCs
- createrawtransaction
- decoderawtransaction
- decodescript
- getrawtransaction
- sendrawtransaction
- testmempoolaccept
Util RPCs
How To Access Litecoin API
Step 1. To access the available Litecoin methods, use the following Ubiquity native access endpoints:
Network: Litecoin Mainnet
Request Type: POST
https://svc.blockdaemon.com/litecoin/mainnet/native
Network: Litecoin Testnet
Request Type: POST
https://svc.blockdaemon.com/litecoin/testnet/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Litecoin method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using getblockcount to get the height of the most-work fully-validated chain in Litecoin Mainnet:
curl -X POST \
https://svc.blockdaemon.com/litecoin/mainnet/native \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "getblockcount", "params": []}'
The following is a typical response you will get:
{
"result": 2313630,
"error": null,
"id": 1
}
NEAR
In this section you will find out which NEAR methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- NEAR Mainnet
Supported NEAR Methods
You can find NEAR API documentation here: NEAR API reference
The following methods are allowed in Ubiquity Native Access API:
Access Keys
- query (view_access_key)
- query (view_access_key_list)
- EXPERIMENTAL_changes (single_access_key_changes)
- EXPERIMENTAL_changes (all_access_key_changes)
Accounts / Contracts
- query (view_account)
- EXPERIMENTAL_changes (account_changes)
- query (view_code)
- query (view_state)
- EXPERIMENTAL_changes (data_changes)
- EXPERIMENTAL_changes (contract_code_changes)
- query (call_function)
Block / Chunk
Gas
Protocol
Network
Transactions
How To Access NEAR API
Step 1. To access the available NEAR methods, use the following Ubiquity native access endpoint:
Network: NEAR Mainnet
Request Type: POST
https://svc.blockdaemon.com/near/mainnet/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a NEAR method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using status to get status information for nodes and validators in NEAR Mainnet:
curl -X POST \
https://svc.blockdaemon.com/near/mainnet/native \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "status", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"result": {
"chain_id": "mainnet",
"latest_protocol_version": 55,
"protocol_version": 55,
"rpc_addr": "0.0.0.0:3030",
"sync_info": {
"earliest_block_hash": "9VCLy3EaCokgrnqeQNyNcY7B4bdLVk5LM2vvHRQYuEJE",
"earliest_block_height": 71915612,
"earliest_block_time": "2022-08-13T12:51:39.002561384Z",
"epoch_id": "HF8QqSZs3LGsTg625y8MBEqbFwjHd8daM9hrgDb4QVUL",
"epoch_start_height": 72114690,
"latest_block_hash": "6gKCRSq9y3SErvbvmJ1dSMKjxb2JpL3g69j3eR4f7G8m",
"latest_block_height": 72123152,
"latest_block_time": "2022-08-16T10:04:45.200886611Z",
"latest_state_root": "HLryscwpjBMsVvBeoAHpVq3ZbYHSJG2djL6HmY9psRLZ",
"syncing": false
},
"validator_account_id": null,
"validators": [
{
"account_id": "bzam6yjpnfnxsdmjf6pw.poolv1.near",
"is_slashed": false
},
{ ...more validators... }
],
"version": {
"build": "crates-0.14.0-149-gef8862918-modified",
"rustc_version": "1.61.0",
"version": "1.28.0"
}
},
"id": 1
}
Oasis
In this section you will find out which Oasis methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Oasis Mainnet
Supported Oasis Methods
You can access Oasis via Rosetta API. Learn more:
The following methods are allowed in Ubiquity Native Access API:
- POST account/balance
- POST account/coins
- POST /block/
- POST /block/transaction
- POST /construction/combine
- POST /construction/derive
- POST /construction/hash
- POST /construction/metadata
- POST /construction/parse
- POST /construction/payloads
- POST /construction/preprocess
- POST /construction/submit
- POST /mempool
- POST /mempool/transaction
- POST /network/list
- POST /network/options
- POST /network/status
How To Access Oasis API
Step 1. To access the available Oasis methods, use the following Ubiquity native access endpoint:
Network: Oasis Mainnet
Request Type: POST
https://svc.blockdaemon.com/oasis/mainnet/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify an Oasis method at the end of the query:
https://svc.blockdaemon.com/oasis/mainnet/native/YOUR_METHOD
Step 4. Specify the data required by the method in the request body.
Example Requests
Example 1. Here is a cURL example for using POST /network/list to get the network identifier of Oasis Mainnet:
curl -X POST \
https://svc.blockdaemon.com/oasis/mainnet/native/network/list \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"metadata": {}}'
The following is a typical response you will get:
{
"network_identifiers": [
{
"blockchain": "Oasis",
"network": "b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535"
}
]
}
Example 2. Here is a cURL example for using POST /network/status to get the current status of Oasis Mainnet:
curl -X POST \
https://svc.blockdaemon.com/oasis/mainnet/native/network/status \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"metadata": {}, "network_identifier": {"blockchain": "Oasis", "network": "b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535"}}'
The following is a typical response you will get:
{
"current_block_identifier": {
"index": 9985468,
"hash": "b74c203aedecfd9f15e7da82cf85bad904a4f51734e2bb0e93ebb449c7ef02bf"
},
"current_block_timestamp": 1661160818000,
"genesis_block_identifier": {
"index": 8048956,
"hash": "0000000000000000000000000000000000000000000000000000000000000000"
},
"oldest_block_identifier": {
"index": 9284103,
"hash": "8bdd726805da09c493e532e5d2a9b6124d5cfc2d1e4209ddd722c7fa0974f2d8"
},
"peers": [
{
"peer_id": "[email protected]:26656"
},
{ ...more items... }
]
}
Example 3. Here is a cURL example for using POST /block to get a block by index in Oasis Mainnet:
curl -X POST \
https://svc.blockdaemon.com/oasis/mainnet/native/block \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"metadata": {}, "network_identifier": {"blockchain": "Oasis", "network": "b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535"}, "block_identifier": {"index": 9985468}}'
The following is a typical response you will get:
{
"block": {
"block_identifier": {
"index": 9985468,
"hash": "b74c203aedecfd9f15e7da82cf85bad904a4f51734e2bb0e93ebb449c7ef02bf"
},
"parent_block_identifier": {
"index": 9985467,
"hash": "ca81d8f4e70bee34fd2be0b76713824d0d9bb85975f1d39c8b72564ea3a1c7d9"
},
"timestamp": 1661160818000,
"transactions": [
{
"transaction_identifier": {
"hash": "5aa588eddf7c862b1d4f6f775f8b0322a67ca07f0d50a71c4948406fd28010f7"
},
"operations": []
},
{ ...more items... }
],
"metadata": {
"epoch": 16629
}
}
}
Optimism
In this section you will find out which Optimism methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Optimism Mainnet
Supported Optimism Methods
You can access Optimism via Ethereum API. Learn more:
The following methods are allowed in Ubiquity Native Access API:
- eth_blockNumber
- eth_call
- eth_chainId
- eth_estimateGas
- eth_feeHistory
- eth_gasPrice
- eth_getAssetBalance
- eth_getBalance
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getCode
- eth_getLogs
- eth_getStorageAt
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionReceipt
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_sendRawTransaction
- eth_subscribe
- eth_syncing
- net_version
- web3_clientVersion
How To Access Optimism API
Step 1. To access the available Optimism methods, use the Ubiquity native access endpoint with /http-rpc
at the end:
Network: Optimism Mainnet
Request Type: POST
https://svc.blockdaemon.com/optimism/mainnet/native/http-rpc
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify an Optimism method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using eth_blockNumber to get the current block number in Optimism Mainnet:
curl -X \
POST https://svc.blockdaemon.com/optimism/mainnet/native/http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x17ba022"
}
Polkadot
In this section you will find out which Polkadot methods are whitelisted in Ubiquity and how to access them:
- Supported Substrate RPC Methods
- How To Access Polkadot via Substrate RPC API
- Example Request for Substrate RPC API
- Supported Substrate Sidecar Methods
- How To Access Polkadot via Substrate Sidecar API
- Example Request for Substrate Sidecar API
The following networks are supported:
- Polkadot Mainnet
- Polkadot Westend
Supported Substrate RPC Methods
You can access Polkadot via Substrate RPC API. Learn more: Substrate RPC API reference
The following methods are allowed in Ubiquity Native Access API:
chain
childstate
- childstate_getKeys
- childstate_getKeysPaged
- childstate_getStorage
- childstate_getStorageEntries
- childstate_getStorageHash
- childstate_getStorageSize
contracts
- contracts_call
- contracts_getStorage
- contracts_instantiate
- contracts_rentProjection
- contracts_upload_code
GrandpaApi
mmr
offchain
payment
rpc
state
- state_call
- state_getChildKeys
- state_getChildReadProof
- state_getChildStorage
- state_getChildStorageHash
- state_getChildStorageSize
- state_getKeys
- state_getKeysPaged
- state_getMetadata
- state_getPairs
- state_getReadProof
- state_getRuntimeVersion
- state_getStorage
- state_getStorageHash
- state_getStorageSize
- state_queryStorage
- state_queryStorageAt
- state_subscribeRuntimeVersion
- state_subscribeStorage
- state_traceBlock
- state_trieMigrationStatus
syncstate
system
- system_addReservedPeer
- system_chain
- system_chainType
- system_dryRun
- system_health
- system_localListenAddresses
- system_localPeerId
- system_name
- system_networkState
- system_nodeRoles
- system_peers
- system_properties
- system_removeReservedPeer
- system_reservedPeers
- system_resetLogFilter
- system_syncState
- system_version
How To Access Polkadot via Substrate RPC API
Step 1. To access the available Substrate RPC methods, use the Ubiquity native access endpoint with /http-rpc
at the end:
Network: Polkadot Mainnet
Request Type: POST
https://svc.blockdaemon.com/polkadot/mainnet/native/http-rpc
Network: Polkadot Westend
Request Type: POST
https://svc.blockdaemon.com/polkadot/westend/native/http-rpc
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Substrate RPC method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request for Substrate RPC API
Here is a cURL example for using system_syncState to get the chainspec running the node, with a sync state, in Polkadot Mainnet:
curl -X POST \
https://svc.blockdaemon.com/polkadot/mainnet/native/http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "system_syncState", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"result": {
"startingBlock": 11614877,
"currentBlock": 11615160
},
"id": 1
}
Supported Substrate Sidecar Methods
You can access Polkadot via Substrate Sidecar API. Learn more: Substrate Sidecar API reference
The following methods are allowed in Ubiquity Native Access API:
accounts
- GET /accounts/{accountId}/asset-approvals
- GET /accounts/{accountId}/asset-balances
- GET /accounts/{accountId}/balance-info
- GET /accounts/{accountId}/staking-info
- GET /accounts/{accountId}/staking-payouts
- GET /accounts/{accountId}/validate
- GET /accounts/{accountId}/vesting-info
blocks
- GET /blocks
- GET /blocks/head
- GET /blocks/head/header
- GET /blocks/{blockId}
- GET /blocks/{blockId}/extrinsics/{extrinsicIndex}
- GET /blocks/{blockId}/header
blocks
- GET /node/network
- GET /node/transaction-pool
- GET /node/version
pallets
- GET /pallets/assets/{assetId}/asset-info
- GET /pallets/staking/progress
- GET /pallets/{palletId}/storage
- GET /pallets/{palletId}/storage/{storageItemId}
runtime
- GET /runtime/code
- GET /runtime/metadata
- GET /runtime/spec
paras
- GET /paras
- GET /paras/auctions/current
- GET /paras/crowdloans
- GET /paras/leases/current
- GET /paras/{paraId}/crowdloan-info
- GET /paras/{paraId}/lease-info
transaction
- POST /transaction
- POST /transaction/dry-run
- POST /transaction/fee-estmate
- GET /transaction/material
How To Access Polkadot via Substrate Sidecar API
Step 1. To access the available Substrate Sidecar methods, use the following Ubiquity native access endpoint:
Network: Polkadot Mainnet
Request Type: POST / GET
https://svc.blockdaemon.com/polkadot/mainnet/native
Network: Polkadot Westend
Request Type: POST / GET
https://svc.blockdaemon.com/polkadot/westend/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Add a Substrate Sidecar method at the end of the query:
https://svc.blockdaemon.com/polkadot/mainnet/native/YOUR_METHOD
Step 4. For POST requests, specify the data required by the method in the request body.
Example Request for Substrate Sidecar API
Here is a cURL example for using GET /blocks/head/header to get the header of the most recently finalized block in Polkadot Mainnet:
curl -X GET \
https://svc.blockdaemon.com/polkadot/mainnet/native/blocks/head/header \
-H 'Authorization: Bearer YOUR_API_KEY'
The following is a typical response you will get:
{
"parentHash": "0xce2dacd2a92d2ae272786c9fcca3f7bd831ef0f87fca252442a0e698a3366490",
"number": "11557833",
"stateRoot": "0xec013a64ddfc05f4a1fcc84e2a15d6e158fbd88fce541b7b96ed40c3d4ba6c40",
"extrinsicsRoot": "0x4ebf6e119dff512925598aade56145811aa09f459f816f8e77dc8b9c396de2ec",
"digest": {
"logs": [
{
"preRuntime": [
"0x42414245",
"0x01b90000002a257e10000000000a154a6d22a07fcbb4769a5bec0983edba50d356753f6f006a795dca69c8462230b43eafb92eb8ed56beb9b28e1f399f910913d46cc974877876f826f0f7310fca528c6f73ae6acba72094a01659796f47701145357add6db6dbe7978cded101"
]
},
{
"seal": [
"0x42414245",
"0xfc0ffcf11176d71725bf8f14e0691185a0159a3d06ce59811c09305b0df0b37c1949883a28837403feb225229923d53bbca2c4dcf82b8251f2aca964beedb385"
]
}
]
}
}
Polygon
In this section you will find out which Polygon methods are whitelisted in Ubiquity and how to access them:
- Supported Tendermint Methods
- How To Access Polygon via Tendermint RPC API
- Example Request for Tendermint RPC API
- How To Access Polygon via Tendermint REST API
- Example Request for Tendermint REST API
The following networks are supported:
- Polygon Mainnet
Supported Ethereum Methods
You can access Polygon via Ethereum API. Learn more: Ethereum API reference
- eth_blockNumber
- eth_call
- eth_chainId
- eth_estimateGas
- eht_feeHistory
- eth_gasPrice
- eth_getBalance
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getCode
- eth_getFilterChanges
- eth_getFilterLogs
- eth_getLogs
- eth_getProof
- eth_getStorageAt
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionReceipt
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_maxPriorityFeePerGas
- eth_sendRawTransaction
- net_version
- web3_clientVersion
How To Access Polygon via Ethereum API
Step 1. To access the available Ethereum methods, use the Ubiquity native access endpoint with http-rpc
at the end:
Network: Polygon Mainnet
Request Type: POST
https://svc.blockdaemon.com/polygon/mainnet/native/http-rpc
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify an Ethereum method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using eth_blockNumber to get the current block number in Polygon Mainnet:
curl -X \
POST https://svc.blockdaemon.com/polygon/mainnet/native/http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x22105c3"
}
Supported Tendermint Methods
You can access Polygon via Tendermint RPC API. Learn more: Tendermint API reference
- abci_info
- abci_query
- block
- block_by_hash
- block_results
- blockchain
- broadcast_evidence
- broadcast_tx_async
- broadcast_tx_sync
- commit
- consensus_params
- consensus_state
- dump_consensus_state
- genesis
- health
- net_info
- num_unconfirmed_txs
- status
- tx
- tx_search
- unconfirmed_txs
- validators
How To Access Polygon via Tendermint RPC API
Step 1. To access the available Tendermint methods, use the Ubiquity native access endpoint with tendermint-rpc
at the end:
Network: Polygon Mainnet
Request Type: POST
https://svc.blockdaemon.com/polygon/mainnet/native/tendermint-rpc
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Tendermint method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using health to get a node heartbeat for Polygon Mainnet:
curl -X \
POST https://svc.blockdaemon.com/polygon/mainnet/native/tendermint-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "health", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": 0,
"result": {}
}
How To Access Polygon via Tendermint REST API
Step 1. To access the available Tendermint methods, use the Ubiquity native access endpoint with tendermint-rest
at the end:
Network: Polygon Mainnet
Request Type: GET
https://svc.blockdaemon.com/polygon/mainnet/native/tendermint-rest
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Tendermint method at the end of the query:
https://svc.blockdaemon.com/polygon/mainnet/native/tendermint-rest/YOUR_METHOD
Example Request
Here is a cURL example for using health to get a node heartbeat for Polygon Mainnet:
curl -X GET \
https://svc.blockdaemon.com/polygon/mainnet/native/tendermint-rest/health \
-H 'Authorization: Bearer YOUR_API_KEY'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"id": 0,
"result": {}
}
Solana
In this section you will find out which Solana methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Solana Mainnet
- Solana Testnet
Supported Solana Methods
You can find Solana API documentation here: Solana API reference
The following methods are allowed in Ubiquity Native Access API:
- getAccountInfo
- getBalance
- getBlock
- getBlockHeight
- getBlockProduction
- getBlockCommitment
- getBlocks
- getBlocksWithLimit
- getBlockTime
- getClusterNodes
- getEpochInfo
- getEpochSchedule
- getFeeForMessage
- getFirstAvailableBlock
- getGenesisHash
- getHealth
- getHighestSnapshotSlot
- getIdentity
- getInflationGovernor
- getInflationRate
- getInflationReward
- getLargestAccounts
- getLatestBlockhash
- getLeaderSchedule
- getMaxRetransmitSlot
- getMaxShredInsertSlot
- getMinimumBalanceForRentExemption
- getMultipleAccounts
- getProgramAccounts
- getRecentPerformanceSamples
- getSignaturesForAddress
- getSignatureStatuses
- getSlot
- getSlotLeader
- getSlotLeaders
- getStakeActivation
- getSupply
- getTokenAccountBalance
- getTokenAccountsByDelegate
- getTokenAccountsByOwner
- getTokenLargestAccounts
- getTokenSupply
- getTransaction
- getTransactionCount
- getVersion
- getVoteAccounts
- isBlockhashValid
- minimumLedgerSlot
- requestAirdrop
- sendTransaction
- simulateTransaction
How To Access Solana API
Step 1. To access the available Solana methods, use the following Ubiquity native access endpoint:
Network: Solana Mainnet
Request Type: POST
https://svc.blockdaemon.com/solana/mainnet/native
Network: Solana Testnet
Request Type: POST
https://svc.blockdaemon.com/solana/testnet/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Solana method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using getBlockHeight to get the current block height in Solana Mainnet:
curl -X POST \
https://svc.blockdaemon.com/solana/mainnet/native \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "getBlockHeight", "params": []}'
The following is a typical response you will get:
{
"jsonrpc": "2.0",
"result": 131348841,
"id": 1
}
Stellar
In this section you will find out which Stellar methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Stellar Mainnet
Supported Stellar Methods
You can find Stellar API documentation here: Stellar API reference
The following methods are allowed in Ubiquity Native Access API:
Ledgers
- GET /ledgers/:ledger_sequence
- GET /ledgers/:ledger_sequence/transactions
- GET /ledgers/:ledger_sequence/operations
- GET /ledgers/:ledger_sequence/payments
- GET /ledgers/:ledger_sequence/effects
- GET /ledgers
Transactions
- GET /transactions/:transaction_id
- GET /transactions/:transaction_id/operations
- GET /transactions/:transaction_id/effects
- GET /transactions
- POST /transactions
Operations
Effects
Accounts
- GET /accounts
- GET /accounts/:account_id
- GET /accounts/:account_id/transactions
- GET /accounts/:account_id/operations
- GET /accounts/:account_id/payments
- GET /accounts/:account_id/effects
- GET /accounts/:account_id/offers
- GET /accounts/:account_id/trades
- GET /accounts/:account_id/data
Offers
Trades
Assets
Claimable Balances
- GET /claimable_balances
- GET /claimable_balances/:claimable_balance_id
- GET /claimable_balances/:claimable_balance_id/transactions
- GET /claimable_balances/:claimable_balance_id/operations
Liquitdity Pools
- GET /liquidity_pools
- GET /liquidity_pools/:liquidity_pool_id
- GET /liquidity_pools/:liquidity_pool_id/effects
- GET /liquidity_pools/:liquidity_pool_id/transactions
- GET /liquidity_pools/:liquidity_pool_id/operations
Aggregations
How To Access Stellar API
Step 1. To access the available Stellar methods, use the following Ubiquity native access endpoint:
Network: Stellar Mainnet
Request Type: GET / POST
https://svc.blockdaemon.com/stellar/mainnet/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Stellar method at the end of the query:
https://svc.blockdaemon.com/stellar/mainnet/native/YOUR_METHOD
Step 4. For POST requests, specify the data required by the method in the request body.
Example Request
Here is a cURL example for using ledgers to list all ledgers in Stellar Mainnet:
curl -X GET \
https://svc.blockdaemon.com/stellar/mainnet/native/ledgers \
-H 'Authorization: Bearer YOUR_API_KEY'
The following is a typical response you will get:
{
"_links": {
"self": {
"href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers?cursor=&limit=10&order=asc"
},
"next": {
"href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers?cursor=47244640256&limit=10&order=asc"
},
"prev": {
"href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers?cursor=8589934592&limit=10&order=desc"
}
},
"_embedded": {
"records": [
{
"_links": {
"self": {
"href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers/2"
},
"transactions": {
"href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers/2/transactions{?cursor,limit,order}",
"templated": true
},
"operations": {
"href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers/2/operations{?cursor,limit,order}",
"templated": true
},
"payments": {
"href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers/2/payments{?cursor,limit,order}",
"templated": true
},
"effects": {
"href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers/2/effects{?cursor,limit,order}",
"templated": true
}
},
"id": "fe0f6bea5f341344fdb5bc6fc4ad719dd63071d9203e9a1e7f17c68ea1ecebde",
"paging_token": "8589934592",
"hash": "fe0f6bea5f341344fdb5bc6fc4ad719dd63071d9203e9a1e7f17c68ea1ecebde",
"prev_hash": "39c2a3cd4141b2853e70d84601faa44744660334b48f3228e0309342e3f4eb48",
"sequence": 2,
"successful_transaction_count": 0,
"failed_transaction_count": 0,
"operation_count": 0,
"tx_set_operation_count": 0,
"closed_at": "2015-09-30T16:46:54Z",
"total_coins": "100000000000.0000000",
"fee_pool": "0.0000000",
"base_fee_in_stroops": 100,
"base_reserve_in_stroops": 100000000,
"max_tx_set_size": 500,
"protocol_version": 1,
"header_xdr": "AAAAATnCo81BQbKFPnDYRgH6pEdEZgM0tI8yKOAwk0Lj9OtIzUjr/foF3Zu1Snl7gIUXUGqhoUJG2tzUKbNoPAsFhpEAAAAAVgwR/gAAAAIAAAAIAAAAAQAAAAEAAAAIAAAAAwAAAfQAAAAA3z9hmASpL9tAVxktxD3XSOp3itxSvEmM6AUkwBS4ERmR2QgH0N3bkOnEnemuBV73KfTL2fMONrNcU1pXRKIkMgAAAAIN4Lazp2QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZAX14QAAAAH0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{ ...more items... }
]
}
}
Tezos
In this section you will find out which Tezos methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- Tezos Mainnet
Supported Tezos Methods
You can find Tezos API documentation here: Tezos API reference
The following methods are allowed in Ubiquity Native Access API:
- GET /chains/<chain_id>/blocks
- GET /chains/<chain_id>/blocks/context/contracts/<address>
- GET /chains/<chain_id>/blocks/context/contracts/<address>/balance
- GET /chains/<chain_id>/blocks/context/contracts/<address>/delegate
- GET /chains/<chain_id>/blocks/head
- GET /chains/<chain_id>/blocks/head~N/header
- GET /chains/<chain_id>/blocks/context/contracts/<address>/manager_key
- POST /chains/<chain_id>/blocks/helpers/scripts/simulate_operation
- GET /chains/<chain_id>/blocks/<block_id>/context/contracts/<address>/counter
- GET /chains/<chain_id>/blocks/<block_id>/hash
- GET /chains/<chain_id>/blocks/<block_id>/header
- GET /chains/<chain_id>/blocks/<block_id>/header/shell
- GET /chains/<chain_id>/blocks/<block_id>/operation_hashes
- GET /chains/<chain_id>/blocks/<block_id>/operations
- GET /chains/<chain_id>/chain_id
- GET /chains/<chain_id>/checkpoint
- GET /chains/<chain_id>/invalid_blocks
- GET /chains/<chain_id>/invalid_blocks/<block_hash>
- GET /chains/<chain_id>/is_bootstrapped
- GET /chains/<chain_id>/levels/caboose
- GET /chains/<chain_id>/levels/checkpoint
- GET /chains/<chain_id>/levels/savepoint
- GET /config/history_mode
- GET /config/network/user_activated_protocol_overrides
- GET /config/network/user_activated_upgrades
- GET /errors
- GET /fetch_protocol/<Protocol_hash>
- POST /injection/operation
- GET /monitor/active_chains
- GET /monitor/bootstrapped
- GET /monitor/commit_hash
- GET /monitor/heads/<chain_id>
- GET /monitor/protocols
- GET /monitor/valid_blocks
- GET /network/connections
- GET /network/connections/<peer_id>
- GET /network/greylist/clear
- GET /network/greylist/ips
- GET /network/greylist/peers
- GET /network/log
- GET /network/peers
- GET /network/peers/<peer_id>
- GET /network/peers/<peer_id>/log
- GET /network/points/<point>
- GET /network/points/<point>/log
- GET /network/self
- GET /network/stat
- GET /network/version
- GET /network/versions
- GET /protocols
- GET /protocols/<Protocol_hash>
- GET /protocols/<Protocol_hash>/environment
- GET /stats/gc
- GET /stats/memory
- GET /version
- GET /workers/block_validator
- GET /workers/chain_validators
- GET /workers/chain_validators/<chain_id>
- GET /workers/chain_validators/<chain_id>/ddb
- GET /workers/chain_validators/<chain_id>/peers_validators
- GET /workers/chain_validators/<chain_id>/peers_validators/<peer_id>
- GET /workers/prevalidators
- GET /workers/prevalidators/<chain_id>
How To Access Tezos API
Step 1. To access the available Tezos methods, use the following Ubiquity native access endpoint:
Network: Tezos Mainnet
Request Type: GET / POST
https://svc.blockdaemon.com/tezos/mainnet/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify a Tezos method at the end of the query:
https://svc.blockdaemon.com/tezos/mainnet/native/YOUR_METHOD
Step 4. For POST requests, specify the data required by the method in the request body.
Example Request
Here is a cURL example for using /network/stat to get the network statistics for Tezos Mainnet:
curl -X GET \
https://svc.blockdaemon.com/tezos/mainnet/native/network/stat \
-H 'Authorization: Bearer YOUR_API_KEY'
The following is a typical response you will get:
{
"total_sent": "362092994390",
"total_recv": "472560797348",
"current_inflow": 342122,
"current_outflow": 211765
}
XRP
In this section you will find out which XRP methods are whitelisted in Ubiquity and how to access them:
The following networks are supported:
- XRP Mainnet
Supported XRP Methods
You can find XRP API documentation here: XRP API reference
The following methods are allowed in Ubiquity Native Access API:
Account Methods
- account_channels
- account_currencies
- account_info
- account_lines
- account_nfts
- account_objects
- account_offers
- account_tx
- gateway_balances
- noripple_check
Ledger Methods
Transactions Methods
Path and Order Book Methods
Payment Channel Methods
Subscription Methods
Server Info Methods
Clio Server Methods
Utility Methods
How To Access XRP API
Step 1. To access the available XRP methods, use the following Ubiquity native access endpoint:
Network: XRP Mainnet
Request Type: POST
https://svc.blockdaemon.com/xrp/mainnet/native
Step 2. You should authorize your request. Learn more: Authentication Guide
Step 3. Specify an XRP method in the request body:
{
"jsonrpc": "2.0",
"id": 1,
"method": "YOUR_METHOD",
"params": []
}
Example Request
Here is a cURL example for using ledger_current to get the unique identifier of the current in-progress ledger in XRP Mainnet:
curl -X POST \
https://svc.blockdaemon.com/xrp/mainnet/native \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "ledger_current", "params": []}'
The following is a typical response you will get:
{
"result": {
"ledger_current_index": 73876024,
"status": "success"
}
}