Claim Rewards

Network

Type: string
Enum:
Required
Cosmos network to build transaction for

Allowed:
testnet, mainnet

Delegator Address

Type: string
Required
The address of the delegator claiming rewards

Validator Addresses

Type: array of strings
Validator addresses to claim rewards from.

Pubkey

Type: string
Pubkey value will be retrieved from the chain but if you're using a fresh account (that does not have any outgoing activity) then this information is not available and it requires the user to pass it.

Pubkey Type

Type: string
Enum:
Type of public key of the delegator.

Allowed:
secp256k1, multisig

Gas Limit

Type: string
Gas limit for the transaction. This is required if pubkey_type is multisig.

Gas Price

Type: string
Gas price for the transaction. This is required if pubkey_type is multisig.

Responses

201
Claim rewards transaction created
400
Bad request
422
Unprocessable entity

Example Request

curl --request POST \
     --url https://api.figment.io/cosmos/claim_rewards \
     --header 'content-type: application/json' \
     --header 'x-api-key: your-api-key-here' \
     --data '
{
  "network": "testnet"
}
'