POST
/
v1
/
portfolios
/
{portfolio_id}
/
wallets
/
{wallet_id}
/
staking
/
claim_rewards
Request to claim rewards for a staked wallet
curl --request POST \
  --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/staking/claim_rewards \
  --header 'Content-Type: application/json' \
  --data '{
  "idempotency_key": "<string>",
  "inputs": {
    "amount": "<string>"
  }
}'
{
  "wallet_id": "<string>",
  "transaction_id": "<string>",
  "activity_id": "<string>"
}

Path Parameters

portfolio_id
string
required

The portfolio ID

wallet_id
string
required

The wallet ID

Body

application/json
idempotency_key
string
required

The client generated idempotency key for requested execution. Any subsequent requests with the same key will return the original response

inputs
object

WalletClaimRewardsInputs contains the custom inputs for claim rewards operations on a wallet. Requirements and supported fields vary by asset type.

Response

200 - application/json

A successful response.

wallet_id
string
required

The wallet ID

transaction_id
string
required

ID of the newly created transaction, can be used to fetch details of the current state of execution

activity_id
string
required

The ID for the activity generated for this request