Post Stake Intent Polygon API
Request object to create a new Stake Intent for Polygon
Parameters
network
- Type: string
- Enum: Allowed:
mainnet,goerli,prater - Required
amount
- Type: string
- Required
- Pattern:
^[1-9]\d+$ - Description: The amount of tokens (in Wei) you want to stake.
wallet_address
- Type: string
- Required
- Pattern:
^0x[a-fA-F0-9]{40}$ - Description: Hex-encoded Ethereum account or smart contract address.
validator_share_address
- Type: string
- Pattern:
^0x[a-fA-F0-9]{40}$ - Description: Hex-encoded Ethereum account or smart contract address.
plan_id
- Type: string
- Description: This feature enables you to stake to validators from the specified plan(s). When no plan id is specified, validators across all plans that match the API route will be available for staking. If it is a shared plan, you can stake to validators on a shared node from the specified plan.
token_type
- Type: string
- Enum: Defaults to POL, Allowed:
MATIC,POL
Idempotency-Key
- Type: uuid
- Description: The unique idempotency key for this request
Responses
200- Description: Created
400- Description: Invalid request.
401- Description: Header 'X-API-Key' missing.
500- Description: Internal server error.
503- Description: Insufficient validators available to process Stake Intent request
Example Request
curl --request POST \
--url https://svc.blockdaemon.com/boss/v1/polygon/mainnet/stake-intents \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"token_type":"POL"}'
Response Examples
- 200
- 400
- 401
- 500
- 503