Approve ERC20Token

ERC Token can be approved using this method. The weightage for this API is 5

API Specification

Approve ERC20Token

POST https://api.krypcore.com/api/v0/ft-manager/approveFT

ERC Token can be approved under the given instance.

Headers

NameTypeDescription

Authorization*

String

User Auth Key obtained from Dash

DappId*

String

DappId

Request Body

NameTypeDescription

chainId*

String

The Chain ID to specify the blockchain network.

approveAddress*

String

Address that requires approval to manage ERC20 tokens on token owner's behalf

custodialWalletAccessToken*

String

The access token for the custodial wallet

contractAddress*

String

The contract address of the ERC20 token

quantity*

String

The quantity of ERC20 tokens to approve

walletType*

String

The type of wallet being used

{
    "Data": {
        "contractAddress": "xxxxxxxxxxxxx",
        "txnHash": "0x6877a4b76836c11ec5b1b1e84222b25517e29dbe74d44dfd6b78367802ee7bcb"
    },
    "Message": "ERC20 Token Created Successfully",
    "Status": "SUCCESS"
}

Take a look at how you might call this method using our official libraries, or via curl:

curl --location --request POST 'https://api.krypcore.com/api/v0/ft-manager/approveFT' \
--header 'Authorization: xxxxxxxxxxxx' \
--header 'DappId: xxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
  "approveAddress": "0x688612BD8e65FF693070A875b6a49672502a0707",
  "chainId": "80001",
  "contractAddress": "0xa9BCB7E413FfE96575390c6F44F54607b44F030a",
  "custodialWalletAccessToken": "d263d546-ccc2-4676-9691-d28c3f836822",
  "quantity": "1000000000000000000",
  "walletType": "non-custodial"
}'

Last updated