Create Withdraw Transaction
Prod Env
https://api.aio.cash
Prod Env
https://api.aio.cash
POST
/withdraw/tx
Request
Authorization
Add parameter in header
apikey
Example:
apikey: ********************
Body Params application/json
chain
enum<string>
required
Allowed values:
ETHEREUMOPTIMISMBITCOINLITECOINTRONARBITRUM_ONEARBITRUM_NOVA
Example:
ETHEREUM
token
enum<string>
required
Allowed values:
ETHTRXBTCBNBLTCUSDTUSDCCRODAILINKUNIWBTCWETHSHIBMATICOPARBDOGESAND
Example:
ETH
to_addr
string
required
Example:
0x0Ebc5B1dcEB734e8ba6903FeF3d07eb0Fda5e43b
amount
number
required
remarks
string
required
Example
{
"chain": "ETHEREUM",
"token": "ETH",
"to_addr": "0x0Ebc5B1dcEB734e8ba6903FeF3d07eb0Fda5e43b",
"amount": 0,
"remarks": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.aio.cash/withdraw/tx' \
--header 'Content-Type: application/json' \
--header 'apikey;' \
--data-raw '{
"chain": "ETHEREUM",
"token": "ETH",
"to_addr": "0x0Ebc5B1dcEB734e8ba6903FeF3d07eb0Fda5e43b",
"amount": 0,
"remarks": "string"
}'
Responses
🟢200Success
application/json
Body
success
boolean
required
Default:
true
msg
string
required
Default:
ok
data
object
required
id
integer
required
chain
enum<string>
required
Allowed values:
ETHEREUMOPTIMISMBITCOINLITECOINTRONARBITRUM_ONEARBITRUM_NOVA
Example:
ETHEREUM
token
enum<string>
required
Allowed values:
ETHTRXBTCBNBLTCUSDTUSDCCRODAILINKUNIWBTCWETHSHIBMATICOPARBDOGESAND
Example:
ETH
amount
string
required
Example:
0.009981
status
enum<string>
required
Allowed values:
INACTIVECANCELACTIVEPENDINGRUNNINGAUTHFAILUREFUNDS_LACKSUCCEED
Default:
INACTIVE
remarks
string
required
created_at
string
required
Example:
2023-12-25T12:00:00+00:00
modified_at
string
required
Example:
2023-12-25T12:00:00+00:00
Example
{
"success": "true",
"msg": "ok",
"data": {
"id": 0,
"chain": "ETHEREUM",
"token": "ETH",
"amount": "0.009981",
"status": "INACTIVE",
"remarks": "string",
"created_at": "2023-12-25T12:00:00+00:00",
"modified_at": "2023-12-25T12:00:00+00:00"
}
}
🟠403Authentication error
🟠422Parameter error
🟠429Rate Limit Error
Modified at 2024-01-25 07:00:25