Powered by Stoplight
post

/eth/erc20/{token}/{wallet}/approve

Approve an Ethereum address to withdraw ERC20 tokens from the wallet via the transferFrom operation

Authorization

apiKey - tangany-subscription
apiKey - tangany-client-id
apiKey - tangany-client-secret

Request Parameters

2 Path Parameters
3 Headers

Request Body

Schema
object
$schema: http://json-schema.org/draft-04/schema#
to
string

A hexadecimal Ethereum address

4 validations + required
amount
string

ERC20 token amount. Must not fall below the token’s decimals specification Examples: 1200, 1e-18 (min. possible amount for a 18 decimals token)

3 validations + required

Responses

Server response for a submitted Ethereum transaction. Call /eth/transaction/{hash} to retrieve the mining status for the transaction

5 Headers
1 Example
Schema
object
$schema: http://json-schema.org/draft-04/schema#
hash
string

Ethereum transaction hash that represents a blockchain operation

4 validations + required

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
2 path params not set
token
wallet
$$.env
3 variables not set
tangany-subscription
tangany-client-id
tangany-client-secret