Skip to main content
POST
Estimate deposit fees
Estimate the fees for a user’s onchain deposit.
Use a Broker API Key and pass the target user’s wallet in X-User-Wallet-Address. The gateway checks that the wallet belongs to your Broker. See Broker API Key and signing.

Usage notes

  • The request address must be the target user’s bound wallet. lz_fee is a USDT decimal string; convert it to an integer with six decimal places before calling Get deposit signing data, for example 0.5 becomes 500000. Pass native_fee unchanged as an integer in the chain’s smallest native unit.
  • fee_source=0 means a real-time quote; fee_source=1 means a fallback quote.

Authorizations

KEY
string
header
required

Broker API Key

Timestamp
string
header
required

Unix timestamp in seconds

SIGN
string
header
required

Hexadecimal HMAC-SHA512 signature generated with the Broker Secret Key

Headers

X-User-Wallet-Address
string
required

Target user's wallet address. The gateway verifies that the user belongs to the current Broker.

Body

application/json
address
string
required

Bound wallet initiating the deposit; EVM 0x hex or Solana base58

chain
enum<string>
required

Network identifier: base, bsc, ethereum, solana, or arbitrum.

Available options:
base,
bsc,
ethereum,
solana,
arbitrum
Example:

"ethereum"

token_address
string
required

Token contract; use the chain's designated zero address for a native token

token_amount
string
required

Deposit amount as a decimal string

token_symbol
string
required

Token symbol, such as USDT

Response

Query successful

code
integer

Business code; 0 indicates success

Example:

0

message
string

Human-readable message; success responses use success

Example:

"success"

reason
string

Error reason identifier; usually empty on success

trace_id
string

Trace ID to provide when requesting support

data
object