POST
/
api
/
v1
/
blockchain
/
estimate
curl --request POST \
  --url https://dash.betteruseblockchain.com/api/v1/blockchain/estimate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "network": "<string>",
  "type": "DEPLOY_ERC20",
  "sender": "<string>",
  "recipient": "<string>",
  "contractAddress": "<string>",
  "amount": 123
}'
{
  "gasLimit": "<string>",
  "gasPrice": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
network
string
required

The blockchain network for the transaction. (e.g., ETH, BSC, POL, XDC)

type
enum<string>
required

The type of transaction.

Available options:
DEPLOY_ERC20,
DEPLOY_NFT,
MINT_NFT,
BURN_NFT,
TRANSFER_NFT,
TRANSFER_ERC20,
DEPLOY_AUCTION,
DEPLOY_MARKETPLACE
sender
string

The address of the sender (required if type is TRANSFER_ERC20).

recipient
string

The address of the recipient (required if type is TRANSFER_ERC20).

contractAddress
string

The contract address (required if type is TRANSFER_ERC20).

amount
number

The amount to transfer (required if type is TRANSFER_ERC20).

Response

200
application/json
Fee estimated successfully
gasLimit
string

Estimated gas limit for the transaction.

gasPrice
string

Estimated gas price for the transaction.