post

/eth/erc20/{token}/{wallet}/transfer-from

Withdraw the preapproved amount of ERC20 tokens or less from a Ethereum address. The operation will fail if the withdrawn amount was not authorized by the address via the approve operation.

Authorization

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

Request Parameters

2 Path Parameters
3 Headers

Request Body

Schema
object
from
string

A hexadecimal Ethereum address. Examples: 0xde0a21566919d193e6a28a9ac8534144cb697eee

3 validations + required
amount
string

ERC20 token amount to withdraw. Must not fall below the token’s decimals specification (e.g. “1e-18” is the minimum amount for a 18 decimals token)

3 validations + required

Responses

Server response for a Ethereum transaction that was queued to be mined by the Ethereum network. Call /eth/transaction/{hash} to retrieve the mining status for the transaction

1 Example
Schema
object
hash
string

Ethereum transaction hash that represents a blockchain operation. Examples: 0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060

3 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