Delegate Transaction
Parameters
| Parameter |
Type |
Requirement |
Description |
network |
string |
required |
Network to build transaction for (testnet, mainnet) |
delegator_address |
string |
required |
Address of the delegator |
validator_address |
string |
required |
Address of the validator |
amount |
string |
required |
Amount to delegate |
delegator_pubkey |
string |
required |
Public key of the delegator |
Responses
201 Delegate transaction created
Object
- data
- network: string
- unsigned_transaction_serialized: string
- signing_payload: string
400 Slate networks error
Example Request
curl --request POST \
--url https://api.figment.io/near/delegate \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: your-api-key-here' \
--data '
{
"network": "testnet"
}'
Example Response
{
"data": {
"network": "string",
"unsigned_transaction_serialized": "string",
"signing_payload": "string"
}
}