Chaingateway.io V2
This API allows you to interact with Ethereum, Binance smart chain, Polygon and Tron blockchain. If you ever looked for a possibility to automate token or payments this is the right place.
You still have no idea for real use cases? Let me give you some examples: Accept your own token as payment method for your shop, distribute airdrop tokens of your ICO, convert your site currency to a token that can be traded on exchanges and many more.
There are a lot of use cases which are not only limited to sending tokens but also receiving them. You could even create a secure wallet for your token which only the wallet owner has access to. Additionally we offer a lot of functions for retrieving blockchain data, including transactions. Using our webhook system, it is possible to receive notifications when events on the blockchain occur, for example when a transfer to a specific address is happening.
Registering
To use this Blockchain API, you need to register for a free account on
Once you have created your account, you can create an API key in your Account panel to use with our API.
Postman
Postman is a great software to test APIs, it helped us a lot when developing this API. If you haven't installed it yet, we recommend to do so
We have created a Postman collection that allows to import all functions and their settings, including descriptions in Postman. This way you can test all functions with the click of a button (just change the parameters before).
API Specifications
For many API clients, websites and development projects you may need a file which specifies all function endpoints of our API. These files can be found in our , always updated in the formats "Postman Collection" and "OPENAPI/SWAGGER".
Authorization
You can get your personal API Key from your account dashboard. It is used by us to determine who is accessing the API and to count the requests by that account. There are 2 possibilities to use it in your requests:
Add it in the HTTP header as
Authorization: q9PdaWuD4j6DK6vsUgehhL8pgarSrS9m
Please do not share your api key! If you did so by mistake, immediately regenerate it in your account panel!
- Homepage
- https://api.apis.guru/v2/specs/chaingateway.io/1.0.0.json
- Provider
- chaingateway.io
- OpenAPI version
- 3.0.3
- Spec (JSON)
- https://api.apis.guru/v2/specs/chaingateway.io/1.0.0/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/chaingateway.io/1.0.0/openapi.yaml
Tools (121)
Extracted live via the executor SDK.
-
binanceSmartChain.broadcasttransaction2Broadcast raw transactions
-
binanceSmartChain.deleteaddress2deleteAddress
-
binanceSmartChain.exportaddress2exportAddress
-
binanceSmartChain.getbep20Receive information of a BEP20 address
-
binanceSmartChain.getbep20balanceGet the balance of a BEP20 address
-
binanceSmartChain.getbinancecoinbalanceGet the balance of an address
-
binanceSmartChain.getblock2Get information of a specific block
-
binanceSmartChain.getgasprice2Get gas price
-
binanceSmartChain.getlastblocknumber2Get the latest block number
-
binanceSmartChain.getnftowner2Get the Owner of an NFT
-
binanceSmartChain.getnfturi2Get the URI of an NFT
-
binanceSmartChain.gettransaction2Get info about a transaction
You can get your transaction decoded by add /decoded to your api call. If you want to get the transaction encoded, youst remove the /decoded part
-
binanceSmartChain.gettransactionreceipt2Get info about a transaction receipt
You can get your transaction decoded by add /decoded to your api call. If you want to get the transaction encoded, youst remove the /decoded part
-
binanceSmartChain.importaddress2importAddress
-
binanceSmartChain.listaddresslistAddress
-
binanceSmartChain.listfailedipns2Returns all subscriptions/IPNs created with an account.
-
binanceSmartChain.listsubscribedaddresses2Returns all subscriptions/IPNs created with an account.
-
binanceSmartChain.listtransactionsbyaddress2Our API provides an endpoint for retrieving all transactions associated with a particular blockchain address. To use this endpoint, you will need to provide the wallet address as a parameter in the request.
Each page of results returned by this endpoint contains up to 100 entries, and you can use a paginator to navigate through the pages of results.
To use the paginator, you can include parameter in your request: "page" . The "page" parameter specifies which page of results to retrieve,
For example, to retrieve the first 100 transactions associated with a particular blockchain address, you would make a request to the following URL:
If there are more than 100 transactions associated with the blockchain address, you can retrieve additional pages of results by incrementing the "page" parameter in your request. For example, to retrieve the next 100 transactions, you would make a request to the following URL:
By using the paginator, you can retrieve all transactions associated with a particular blockchain address, regardless of the total number of transactions in the blockchain.
each request tells you the max pages within the Request in the max_pages field
"max_pages": 515 -
binanceSmartChain.newaddress2newAddress
-
binanceSmartChain.resendfailedipn2Returns all subscriptions/IPNs created with an account.
-
binanceSmartChain.sendbep20sendBEP20
-
binanceSmartChain.sendbep721sendBEP721
-
binanceSmartChain.sendtransaction2sendTransaction
-
binanceSmartChain.subscribeaddress2Creates a new subscription/IPN for the given address (and contractaddress). You will receive a notification to the given url every time a deposit is received. Unsubscribe the address before sending tokens/ETH from it or you won't get reliable notifications anymore.
-
binanceSmartChain.unsubscribeaddress2Deletes an existing subscription/IPN for the given address (and contractaddress).
-
bitcoin.createwalletcreateWallet
-
bitcoin.createwalletaddresscreateWalletAddress
-
bitcoin.deletewalletdeleteWallet
-
bitcoin.exportaddressprivatekeyexportAddressPrivateKey
-
bitcoin.getblock4getBlock
-
bitcoin.getblockchaininfogetBlockchaIninfo
-
bitcoin.getfeesThe fees are parted into three categroies
fast (10min / 1 block)
medium (30 min / 3 blocks)
slow (60 min / 6 blocks)this tells you in wich block distance your transaction get confirmed. A block is around ~10 minutes.
Please note that fees are dynamic by transaction size. This is only an estimation!
-
bitcoin.getlastblocknumber4Get the latest block number
-
bitcoin.gettransaction4You can get your transaction decoded by add /decoded to your api call. If you want to get the transaction encoded, youst remove the /decoded part
-
bitcoin.getwalletgetWallet
-
bitcoin.getwalletaddressesgetWalletAddresses
-
bitcoin.listfailedipns4Returns all subscriptions/IPNs created with an account.
-
bitcoin.listsubscribedaddresses4Returns all subscriptions/IPNs created with an account.
-
bitcoin.resendfailedipn4Returns all subscriptions/IPNs created with an account.
-
bitcoin.sendtransaction4sendTransaction
-
bitcoin.subscribeaddress4Creates a new subscription/IPN for the given address (and contractaddress). You will receive a notification to the given url every time a deposit is received. Unsubscribe the address before sending tokens/ETH from it or you won't get reliable notifications anymore.
-
bitcoin.unsubscribeaddress4Deletes an existing subscription/IPN for the given address (and contractaddress).
-
ethereum.broadcasttransactionBroadcast raw transactions
-
ethereum.deleteaddressdeleteAddress
-
ethereum.exportaddressexportAddress
-
ethereum.getallerc20balanceGet the balance of an ERC20 address
-
ethereum.getblockGet information of a specific block
-
ethereum.geterc20Get information about an ERC20 token
-
ethereum.getethereumbalanceGet the balance of an address
-
ethereum.getgaspriceGet gas price
-
ethereum.getlastblocknumberGet the latest block number
-
ethereum.getnftownerGet the Owner of an NFT
-
ethereum.getnfturiGet the URI of an NFT
-
ethereum.gettransactionGet info about a transaction
You can choose if you want to get the Transaction encoded or decoded by add /decoded to your request. See examlpes for details
-
ethereum.gettransactionreceiptGet info about a transaction receipt
You can choose if you want to get the Transaction encoded or decoded by add /decoded to your request. See examlpes for details
-
ethereum.importaddressimportAddress
-
ethereum.listaddresseslistAddresses
-
ethereum.listfailedipnsReturns all subscriptions/IPNs created with an account.
-
ethereum.listipnsbywebhookidReturns all subscriptions/IPNs created with an account.
-
ethereum.listsubscribedaddressesReturns all subscriptions/IPNs created with an account.
-
ethereum.listtransactionsbyaddressOur API provides an endpoint for retrieving all transactions associated with a particular blockchain address. To use this endpoint, you will need to provide the wallet address as a parameter in the request.
Each page of results returned by this endpoint contains up to 100 entries, and you can use a paginator to navigate through the pages of results.
To use the paginator, you can include parameter in your request: "page" . The "page" parameter specifies which page of results to retrieve,
For example, to retrieve the first 100 transactions associated with a particular blockchain address, you would make a request to the following URL:
If there are more than 100 transactions associated with the blockchain address, you can retrieve additional pages of results by incrementing the "page" parameter in your request. For example, to retrieve the next 100 transactions, you would make a request to the following URL:
By using the paginator, you can retrieve all transactions associated with a particular blockchain address, regardless of the total number of transactions in the blockchain.
each request tells you the max pages within the Request in the max_pages field
"max_pages": 515 -
ethereum.newaddressnewAddress
-
ethereum.resendfailedipnReturns all subscriptions/IPNs created with an account.
-
ethereum.senderc20sendERC20
-
ethereum.senderc721sendERC721
-
ethereum.sendtransactionsendTransaction
-
ethereum.subscribeaddressCreates a new subscription/IPN for the given address (and contractaddress). You will receive a notification to the given url every time a deposit is received. Unsubscribe the address before sending tokens/ETH from it or you won't get reliable notifications anymore.
You can choose one or more from following filter criterias
You also need to dpecify the parameter "type". you can choose between ['ETH', 'ERC20', 'ERC721', null]
-
ethereum.unsubscribeaddressDeletes an existing subscription/IPN for the given address (and contractaddress).
-
market.getalltimehighgetAllTimeHigh
-
market.getalltimelowgetAllTimeLow
-
market.getcurrenciesgetCurrencies
-
market.getpricedatabycurrencygetPriceDataByCurrency
-
market.getratebycurrencygetRateByCurrency
-
polygon.broadcasttransaction1Broadcast raw transactions
-
polygon.deleteaddress1deleteAddress
-
polygon.exportaddress1exportAddress
-
polygon.getblock1Get information of a specific block
-
polygon.geterc201Get information about an ERC20 token
-
polygon.geterc20balance1Get the balance of an ERC20 address
-
polygon.getgasprice1Get gas price
-
polygon.getlastblocknumber1Get the latest block number
-
polygon.getnftowner1Get the Owner of an NFT
-
polygon.getnfturi1Get the URI of an NFT
-
polygon.getpolygonbalanceGet the balance of an address
-
polygon.gettransaction1Get info about a transaction
You can choose if you want to get the Transaction encoded or decoded by add /decoded to your request. See examlpes for details
-
polygon.gettransactionreceipt1Get info about a transaction receipt
You can choose if you want to get the Transaction encoded or decoded by add /decoded to your request. See examlpes for details
-
polygon.importaddress1importAddress
-
polygon.listaddresses1listAddresses
-
polygon.listfailedipns1Returns all subscriptions/IPNs created with an account.
-
polygon.listipnsbywebhookid1Returns all subscriptions/IPNs created with an account.
-
polygon.listsubscribedaddresses1Returns all subscriptions/IPNs created with an account.
-
polygon.listtransactionsbyaddress1Our API provides an endpoint for retrieving all transactions associated with a particular blockchain address. To use this endpoint, you will need to provide the wallet address as a parameter in the request.
Each page of results returned by this endpoint contains up to 100 entries, and you can use a paginator to navigate through the pages of results.
To use the paginator, you can include parameter in your request: "page" . The "page" parameter specifies which page of results to retrieve,
For example, to retrieve the first 100 transactions associated with a particular blockchain address, you would make a request to the following URL:
If there are more than 100 transactions associated with the blockchain address, you can retrieve additional pages of results by incrementing the "page" parameter in your request. For example, to retrieve the next 100 transactions, you would make a request to the following URL:
By using the paginator, you can retrieve all transactions associated with a particular blockchain address, regardless of the total number of transactions in the blockchain.
each request tells you the max pages within the Request in the max_pages field
"max_pages": 515 -
polygon.newaddress1newAddress
-
polygon.resendfailedipn1Returns all subscriptions/IPNs created with an account.
-
polygon.senderc201sendERC20
-
polygon.senderc7211sendERC721
-
polygon.sendtransaction1sendTransaction
-
polygon.subscribeaddress1Creates a new subscription/IPN for the given address (and contractaddress). You will receive a notification to the given url every time a deposit is received. Unsubscribe the address before sending tokens/ETH from it or you won't get reliable notifications anymore.
You can choose one or more from following filter criterias
You also need to dpecify the parameter "type". you can choose between ['ETH', 'ERC20', 'ERC721', null]
-
polygon.unsubscribeaddress1Deletes an existing subscription/IPN for the given address (and contractaddress).
-
tron.getaccountresourcesgetAccountResources
-
tron.getblock3getBlock
-
tron.getchainparametersgetChainParameters
-
tron.getlastblocknumber3Get the latest block number
-
tron.gettransaction3You can get your transaction decoded by add /decoded to your api call. If you want to get the transaction encoded, youst remove the /decoded part
-
tron.gettransactionreceipt3You can get your transaction decoded by add /decoded to your api call. If you want to get the transaction encoded, youst remove the /decoded part
-
tron.gettrc10balancegetTRC10Balance
-
tron.gettrc20balancegetTRC20Balance
-
tron.gettronbalancegetTronBalance
-
tron.listfailedipns3Returns all subscriptions/IPNs created with an account.
-
tron.listsubscribedaddresses3Returns all subscriptions/IPNs created with an account.
-
tron.listtransactionsbyaddress3Our API provides an endpoint for retrieving all transactions associated with a particular blockchain address. To use this endpoint, you will need to provide the wallet address as a parameter in the request.
Each page of results returned by this endpoint contains up to 100 entries, and you can use a paginator to navigate through the pages of results.
To use the paginator, you can include parameter in your request: "page" . The "page" parameter specifies which page of results to retrieve,
For example, to retrieve the first 100 transactions associated with a particular blockchain address, you would make a request to the following URL:
If there are more than 100 transactions associated with the blockchain address, you can retrieve additional pages of results by incrementing the "page" parameter in your request. For example, to retrieve the next 100 transactions, you would make a request to the following URL:
By using the paginator, you can retrieve all transactions associated with a particular blockchain address, regardless of the total number of transactions in the blockchain.
each request tells you the max pages within the Request in the max_pages field
"max_pages": 515 -
tron.newaddress3newAddress
-
tron.resendfailedipn3Returns all subscriptions/IPNs created with an account.
-
tron.sendtransaction3sendTransaction
-
tron.sendtrc10sendTRC10
-
tron.sendtrc20sendTRC20
-
tron.sendtrc721sendTRC721
-
tron.subscribeaddress3Creates a new subscription/IPN for the given address (and contractaddress). You will receive a notification to the given url every time a deposit is received. Unsubscribe the address before sending tokens/ETH from it or you won't get reliable notifications anymore.
-
tron.unsubscribeaddress3Deletes an existing subscription/IPN for the given address (and contractaddress).
-
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools