GET ERC20 Offchain Fee

get fee of updateAccount, transfer, withdraw. etc

EndPoint

GET api/v3/user/offchainFee

FieldDescriptionExample

X-API-KEY

ApiKey

"HlkcGxbqBeaF76j4rvPaOasyfPwnkQ6B6DQ6THZWbvrAGxzEdulXQvOKLrRWZLnN"

Request

FieldDescriptionExample

accountId

Account ID

10110

requestType

Off-chain request type Allowable : ['0:ORDER', '1:OFFCHAIN_WITHDRAWAL', '2:UPDATE_ACCOUNT', '3:TRANSFER', '4:FAST_OFFCHAIN_WITHDRAWAL', '5:OPEN_ACCOUNT', '6:AMM_EXIT', '7:DEPOSIT', '8:AMM_JOIN', '15:TRANSFER_AND_UPDATE_ACCOUNT']

1

tokenSymbol

(Optional)The token symbol, needed when requestType is 1 or 4

"LRC"

amount

(Optional) The amount to withdraw

"10000000000000"

Response

FieldDescriptionExample

gasPrice

gasPrice when calculate the fee

2194508101

fees

List[TokenFee]

Model

TokenFee

FieldDescriptionExample

token

fee token

"ETH"

fee

fee amount

"200000000000 0000"

discount

token discount. 0.8 means 80% of original fee

1.0

Last updated