Token Collection (POST)

Token Collection

This API is used to fast collect tokens from multiple addresses

URL

Header: X-API-KEY

(Please do not disclose your API Key to anyone. If you are at risk of losing it, please refresh it.)

Notes

  1. X-API-KEY can be obtained in your "Dashboard", go to check: Dashboard

  2. In the paging type interface, use the next field in the return value as the query parameter for the next page (if next == null, it means that paging has ended)

Request Example

{
	"chain": "solana",
	"fromWalletIds": [
		"y2e8ft2o105l75",
		"iay5tlko690fg3",
		"lv260jui050daj"
	],
	"toAddress": "87CejvPwhBwuLr6cQ9Cjpb4ASTbXx1xaUyAm5J7RT4Bh",
	"token": "",
	"keepAmountUI": 0.5,
	"gasFeeDelta": 0,
	"maxFeePerGas": 0,
	"priorityFee": 0.001
}

Request Response

{
	"err": false,
	"res": [
		{
			"err": false,
			"msg": "OK",
			"walletAddress": "Fnpyvw6cmc8VzKcyLnYENa78uCEsnAUJ5V7aRQXLodw4",
			"txid": "3ghheeVeiT6vorkZJehjSvwi4afo8qWL5ru9YfJRzCgcxJyd52ravvobEGDHd6v8ZznfnBj5EGQbYqhEHR33ZHVA",
			"amountUnit": "99999999500000",
			"decimals": 6
		},
		{
			"err": false,
			"msg": "OK",
			"walletAddress": "5yRfpu87ackjzYjDJWfxsMG9yC6zoYJPSKNF43SyyfJS",
			"txid": "6hRyGmPQBadthc56bbqJivTaSCksHazrkmvidRt5ZQkkaKXJEZH3WAC9n2boWG3M2qcvaR3XzOH8bPJg1koGREgg",
			"amountUnit": "99999999500000",
			"decimals": 6
		}
	],
	"docs": "https://dbotx.com/docs"
}

Request Parameters

  • chain: Blockchain (solana/ethereum/base/bsc/tron)

  • fromWalletIds: List of wallet ids to collect tokens

  • toAddress: Wallet address to receive tokens

  • token: Token addresses to be collected, "" means collect native token of this chain

  • keepAmountUI: Amount of tokens kept per address, 0 means collect all

  • gasFeeDelta: Extra added gas (Gwei), valid for EVM

  • maxFeePerGas: When the base gas exceeds this value, no transaction will execute (Gwei), valid for EVM chains

  • priorityFee: Priority Fee (SOL), valid for Solana, empty string means use auto priority fee

Last updated