Undelegate
API Request for Undelegation
Parameters
network: string (required)
Osmosis network to build transaction for
Allowed:testnet,mainnetdelegator_address: string (required)
The address of the delegatorvalidator_address: string (required)
The address of the validatoramount: string (required)
Amount to undelegatepubkey: string
Public key of the delegatorpubkey_type: string (enum)
Type of public key of the delegator.
Allowed:secp256k1,multisiggas_limit: string
Gas limit for the transaction. Required if pubkey type is multisig.gas_price: string
Gas price for the transaction. Required if pubkey type is multisig.
Response Codes
- 201: Undelegate transaction created
- 400: Bad request
- 422: Unprocessable entity
Example CURL Request
curl --request POST \
--url https://api.figment.io/osmosis/undelegate \
--header 'content-type: application/json' \
--header 'x-api-key: your-api-key-here' \
--data '
{
"network": "testnet"
}
'```