Generate new gas pump smart contract address on the blockchain. It's possible to enable tokens, which should be detected and supported on that address. This address enables custodial providers to
receive native assets, ERC20 / ERC721 / ERC1155 tokens on behalf of their customers on dedicated blockchain address, but in the same time it can initiate transfer of those assets away.
Gas required for the transfer from that address is going to be deducted from the providers address - the one, which was used to generate the address on the blockchain.
There are multiple options, how this address can be setup - it cannot be changed in the future:
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to perform the required operation due to a logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "chain": "ETH",
- "fromPrivateKey": "0x05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2",
- "enableFungibleTokens": false,
- "enableNonFungibleTokens": false,
- "enableSemiFungibleTokens": false,
- "enableBatchTransactions": false,
- "fee": {
- "gasLimit": "40000",
- "gasPrice": "20"
}, - "nonce": 0
}
{- "txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9",
- "failed": false
}
Generate new gas pump smart contract address on the blockchain. This address enables custodial providers to
receive native assets, ERC20 / ERC721 / ERC1155 tokens on behalf of their customers on dedicated blockchain address, but in the same time it can initiate transfer of those assets away.
Gas required for the transfer from that address is going to be deducted from the providers address - the one, which was used to generate the address on the blockchain.
This operation deploys a smart contract on the blockchain.
For paid plans, it is possible to pay for the gas costs - you don't have to provide private key or signatureId. Blockchain fees will be covered by your credits.
Supported blockchains:
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to perform the required operation due to a logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "chain": "MATIC",
- "feesCovered": true,
- "batchCount": 270,
- "owner": "0x8cb76aed9c5e336ef961265c6079c14e9cd3d2ea"
}
{- "txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9",
- "failed": false
}
Get gas pump smart contract addresses from deploy transaction.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
curl -i -X GET \ 'https://api-eu1.tatum.io/v3/blockchain/sc/custodial/{chain}/{hash}' \ -H 'x-api-key: YOUR_API_KEY_HERE'
[- "0xc21C81ef03f98898Fb155E00C364e8a7b9D158b8"
]
Approve transfer of assets from the gas pump smart contract wallet.
Supported blockchains:
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to perform the required operation due to a logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "chain": "ETH",
- "custodialAddress": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "tokenAddress": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "contractType": 0,
- "spender": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "amount": "100000",
- "tokenId": "100000",
- "fromPrivateKey": "0x05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2",
- "nonce": 1,
- "fee": {
- "gasLimit": "40000",
- "gasPrice": "20"
}
}
{- "txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9",
- "failed": false
}
Transfer assets from the gas pump smart contract wallet. Originator of this transaction must be the address which created the address.
It's possible to transfer only 1 assets in 1 transaction.
Supported blockchains:
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to perform the required operation due to a logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "chain": "ETH",
- "custodialAddress": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "tokenAddress": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "contractType": 0,
- "recipient": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "amount": "100000",
- "tokenId": "100000",
- "fromPrivateKey": "0x05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2",
- "nonce": 1,
- "fee": {
- "gasLimit": "40000",
- "gasPrice": "20"
}
}
{- "txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9",
- "failed": false
}
Transfer assets from the gas pump smart contract wallet. Originator of this transaction must be the address which created the address.
It's possible to transfer any amount of different assets in 1 transaction, if the wallet was generated with the batch option enabled.
Supported blockchains:
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to perform the required operation due to a logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "chain": "ETH",
- "custodialAddress": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
- "tokenAddress": [
- "0x687422eEA2cB73B5d3e242bA5456b782919AFc85"
], - "contractType": [
- 0
], - "recipient": [
- "0x687422eEA2cB73B5d3e242bA5456b782919AFc85"
], - "amount": [
- "100000"
], - "tokenId": [
- "100000"
], - "fromPrivateKey": "0x05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2",
- "nonce": 1,
- "fee": {
- "gasLimit": "40000",
- "gasPrice": "20"
}
}
{- "txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9",
- "failed": false
}