跳转到主要内容
POST
/
transferTokens
Transfer LPT tokens
curl --request POST \
  --url http://localhost:5935/transferTokens \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "0x1234567890abcdef1234567890abcdef12345678",
  "amount": "1000000000000000000"
}
'
{
  "txHash": "0x...",
  "status": "success"
}

请求体

application/json
to
string
必填

Recipient address

示例:

"0x1234567890abcdef1234567890abcdef12345678"

amount
string
必填

Amount of LPT to transfer (in wei)

示例:

"1000000000000000000"

响应

200 - application/json

Transfer successful

txHash
string

Transaction hash

示例:

"0x..."

status
string

Transaction status

示例:

"success"

Last modified on March 1, 2026