Get ERC20 withdrawal approval
GEThttps://api.n00.testnet.vega.rocks/api/v2/erc20/asset/withdrawal/bundle
Get the signature bundle to finalise a withdrawal on Ethereum
Request
Query Parameters
withdrawalId stringrequired
Withdrawal ID to retrieve.
Responses
- 200
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
amount string
Amount to be withdrawn.
assetSource string
Address of asset on Ethereum.
creation int64
Creation timestamps.
nonce string
Nonce that uniquely identifies this signature bundle and prevents resubmission.
signatures string
Signatures bundle as hex encoded data, prefixed with 0x
e.g: 0x + sig1 + sig2 + ... + sixN.
targetAddress string
Ethereum address, prefixed with 0x
, that will receive the withdrawn assets.
{
"amount": "string",
"assetSource": "string",
"creation": "string",
"nonce": "string",
"signatures": "string",
"targetAddress": "string"
}
An internal server error
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
- curl
- python
- go
- nodejs
- CURL
curl -L -X GET 'https://api.n00.testnet.vega.rocks/api/v2/erc20/asset/withdrawal/bundle' \
-H 'Accept: application/json'
ResponseClear