Withdraw
API Withdraw Parameters
Parameters
delegator_address
string
required
Address to withdraw fromvalidator_address
string
required
Validator address to withdraw fromdelegator_pubkey
string
required
Delegator public keyamount
string
required
Amount to withdraw in NEARnetwork
string
enum
required
Network withdraw is on.
Allowed:testnet,mainnet
Response Codes
201
Success- data
- network
string
Network withdrawn from - unsigned_transaction_serialized
string
Unsigned transaction serialized - signing_payload
string
Signing payload
- network
- data
400
Invalid parameters422
Unprocessable Entity
Example cURL Request
curl --request POST \
--url https://api.figment.io/near/withdraw \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: your-api-key-here' \
--data '
{
"network": "testnet"
}
'
Example Response Structure
{
"data": {
"network": "string",
"unsigned_transaction_serialized": "string",
"signing_payload": "string"
}
}