go-wallet
  1. go-solana
go-wallet
  • go-solana
    • 转账接口
      POST
    • token转账
      POST
    • 部署token
      POST
    • 部署token通过cli
      POST
    • 查找交易通过hash
      GET
    • 通过地址查询交易
      POST
    • 2022token转账
      POST
  • simple-bank
    • 存取款接口
      POST
    • 转账
      POST
    • 获得账户信息
      GET
    • 获得tx的历史记录
      GET
    • 获得用户的所有账户
      GET
    • 创建账户
      POST
  • work
    • getPriceLive
      POST
    • 未命名接口
      GET
  • 未命名接口
    POST
  • 未命名接口
    POST
  1. go-solana

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
上一页
转账接口
下一页
部署token
Built with