token转账
开发中
POST
/api/v1/TransferFromtoken
请求参数
Body 参数application/json
amount
integer
必需
From
string
必需
To
string
必需
Tokenaddress
string
必需
示例
{
"to_account_id": 6,
"currency": "USD",
"from_account_id": 6,
"amount": -1
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/TransferFromtoken' \
--header 'Content-Type: application/json' \
--data-raw '{
"to_account_id":6,
"currency": "USD",
"from_account_id":6,
"amount": -1
}'
返回响应
🟢200成功
application/json
Body
transfer
object
必需
id
integer
必需
from_account_id
integer
必需
to_account_id
integer
必需
amount
integer
必需
created_at
string
必需
from_account
object
必需
id
integer
必需
owner
string
必需
balance
integer
必需
currency
string
必需
created_at
string
必需
to_account
object
必需
id
integer
必需
owner
string
必需
balance
integer
必需
currency
string
必需
created_at
string
必需
from_entry
object
必需
id
integer
必需
account_id
integer
必需
amount
integer
必需
created_at
string
必需
to_entry
object
必需
id
integer
必需
account_id
integer
必需
amount
integer
必需
created_at
string
必需
示例
{
"transfer": {
"id": 0,
"from_account_id": 0,
"to_account_id": 0,
"amount": 0,
"created_at": "string"
},
"from_account": {
"id": 0,
"owner": "string",
"balance": 0,
"currency": "string",
"created_at": "string"
},
"to_account": {
"id": 0,
"owner": "string",
"balance": 0,
"currency": "string",
"created_at": "string"
},
"from_entry": {
"id": 0,
"account_id": 0,
"amount": 0,
"created_at": "string"
},
"to_entry": {
"id": 0,
"account_id": 0,
"amount": 0,
"created_at": "string"
}
}
修改于 2024-11-17 05:40:23