Avalanche

Post Stake Intent

Changed on

Returns an unsigned transaction that can be used to delegate your tokens to a Blockdaemon validator.

post/v1/avalanche/{network}/stake-intents

Request

  • Base URL
    https://svc.blockdaemon.com/boss
  • URL
    https://svc.blockdaemon.com/boss/v1/avalanche/{network}/stake-intents
  • Auth
    API key in header X-API-KEY

Request body

validator_addressstring

Avalanche validator node address

delegator_addressstring required

Avalanche platform chain address

start_timeinteger

Avalanche staking start time

end_timeinteger

Avalanche staking start time

amountstring required

Denomination of Avalanche.

plan_idstring

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 to stake to validators on a shared node from the specified plan.

Example request

{
  "validator_address": "NodeID-B19uSxUKerjjnA215czAJLHMqNJMbsAMWuSxUKerjjW",
  "delegator_address": "P-fuji1g2g0jxcfn5sp59ld7g0t0tp4jrqppvqcfqc7hy",
  "start_time": 1689939023,
  "end_time": 1689939023,
  "amount": "10000000000",
  "plan_id": "plan_Wgx98Rbi8nQuL9ddn3mTk1"
}

Response

Created

stake_intent_idstring base58 required

Unique idenifier for a group of stakes.

customer_idstring required

Unique identifier for a customer

plan_idstring

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 to stake to validators on a shared node from the specified plan.

protocol'avalanche' required

Avalanche protocol

network'mainnet' | 'fuji' | 'local' required

Avalanche network

Example response

{
  "stake_intent_id": "stake_intent_Wgx98Rbi8nQuL9ddn3mTk1",
  "customer_id": "SatoshiNakamoto-xUYJbPw9hw",
  "plan_id": "plan_Wgx98Rbi8nQuL9ddn3mTk1",
  "avalanche": {
    "validator_address": "NodeID-B19uSxUKerjjnA215czAJLHMqNJMbsAMWuSxUKerjjW",
    "unsigned_transaction": "0x22895118000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120087fed394b43849eebef1e88873cd9efdbe33136656e5148e659b8b2f33625d40000000000000000000000000000000000000000000000000000000000000030b81748644e23c4d950f9dd709f3eb73d5eacd9657997e1d9dde7c4ebd8a6519ecb9d0a7fb603d3b68e023278f9650122000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020010000000000000000000000c509bb854c526af4cee5e037089f7aa8e091d8870000000000000000000000000000000000000000000000000000000000000060b36b79b4b206c0310472c117fa40c05342b5dc3e89f98f42c9da3ce6450d4c603cad55248017fd4eca3ab277cca64569193e4d487f5b2ea78a2bcdc81926c313c05842a3af318967a775783bba22519e8b8886587efa99aa7dab5784f792b187\n",
    "amount": "10000000000",
    "delegator_address": "P-fuji1g2g0jxcfn5sp59ld7g0t0tp4jrqppvqcfqc7hy",
    "start_time": 1689939023,
    "end_time": 1689939023
  }
}

Changes

    • breaking

      the response's property type changed from string to integer, and format from no format to int32 for status

    • breaking

      the response's property type changed from string to integer, and format from no format to int32 for status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status