Undelegate

Network

string
enum
required
Network to build transaction for
testnet, mainnet
Allowed:
testnet, mainnet

delegator_address
string
required
Address of the delegator

validator_address
string
required
Address of the validator

amount
string
required
Amount to undelegate

delegator_pubkey
string
required
Public key of the delegator

201 Undelegate

object
data
object

network
string
Network the transaction was built for

unsigned_transaction_serialized
string
Unsigned transaction serialized

signing_payload
string
Signing payload

400 Invalid Request

curl --request POST \
     --url https://api.figment.io/near/undelegate \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'x-api-key: your-api-key-here' \
     --data '{
  "network": "testnet"
}'
{
  "data": {
    "network": "string",
    "unsigned_transaction_serialized": "string",
    "signing_payload": "string"
  }
}