📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

Method: POST thetacli.Send

dropdown

方法 RPC thetacli.Send 例如 Theta

POST thetacli.Send

此API发送theta/tfuel代币。 请注意,API呼叫可以发送theta令牌或Tfuel令牌,或者两者兼而有之。

Parameters

chain_id - 细绳

链的ID。

from - 细绳

从发送令牌的帐户的地址。

to - 细绳

接收帐户的地址。

thetawei - 细绳

要发送的theta代币数量(在Tfuelwei,1个Tfuel = 10^18 tfuelwei)。

tfuelwei - 细绳

将发送的Tfuel代币数量(在Tfuelwei,1 tfuel = 10^18 tfuelwei)。

fee - 细绳

Tfuelwei的交易费。

sequence - 细绳

从帐户的预期序列编号。

async - 布尔

如果将异步设置为false,则RPC调用将等到已包含在块中或达到超时的交易后。 否则,RPC调用将立即使用交易哈希返回。

Request

curl --location --request POST 'https://theta.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "thetacli.Send",
"params": {"chain_id": "privatenet", "from": "0x2E833968E5bB786Ae419c4d13189fB081Cc43bab", "to": "0xA47B89c94a50C32CEACE9cF64340C4Dce6E5EcC6", "thetawei": "99000000000000000000", "tfuelwei": "88000000000000000000", "fee": "1000000000000", "sequence": "6", "async": true},
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "block": null,
        "hash": "0xe3e82ae1e08ca49f85842729bd3c70ba0874d59cca3812fe0807506463851d22"
    }
}