Get transaction info

This api will retrieve receiver, return eth_address for transaction, and calculate initial gas at the same time

Get transaction info

POST api/v1/oauth2/wallet/token_tx_info

Headers

NameTypeDescription

Access-Token*

String

access token

Request Body

NameTypeDescription

receiver*

String

user name

chainid*

String

chainid

amount*

String

amount

symbol*

String

token name

{
    "code": 200,
    "data": {
        "amount": "10000000000000000",
        "chain_url": "https://goerli.gateway.metisdevops.link",
        "from": "0xdF58ae1438620EA9E0A7584e6bF23dE505682B21",
        "gas_limit": 58300,
        "gas_price": 60000000,
        "is_main_token": true, //If main token
        "is_metamask": false,
        "is_thirdwallet": false,
        "nonce": 17,
        "to": "0xdF58ae1438620EA9E0A7584e6bF23dE505682B21",
        "tokenAddress": "",  //token contract address
        "trans_func_abi": "", //token tx method
        "wallet_pwd_state": 1,
        "wallet_type": "POLIS" //wallet type
    },
    "msg": ""
}

Last updated