v1

latestOpenAPI 3.1.02026-07-24223580832.9 KB
Polkadot

Post Stake Intent

Creates an unsigned transaction that will attach a Blockdaemon's proxy account to the specified customer account. This will allow Blockdaemon to nominate on behalf of the customer and to continuously optimise the nominations of the customer account in order to achieve the best possible rewards.

The attaching will take place as soon as the user signs and broadcasts the transaction to the Polkadot network.

The customer account can be a stash account or a proxy (staking or non-transfer) for a stash account.

Example (for the Westend network): - Submitted: - customer_address: 5CF33r36TUbcSz4KxXo5ApzAW9Dtf8EkfvTQppiEEd9HfAZ6

  • Returned:
    • proxy_address: 5FEPMjDLQd4Yyf8Dg7WSNVWSU36T1rXCcq1ph6HkW1YpNs5e
    • unsigned_transaction: 0xa4041601008c16e19e94328985d65cb7e3245213892730dd0e841f6511478cb12f23a178330100000000
post/v1/polkadot/{network}/stake-intents

Request body

customer_addressstring base58

Polkadot account address in SS58 format.

controller_addressstring base58

Polkadot account address in SS58 format.

Example request

{
  "customer_address": "5xot9PVkphiX2adznghwrAuxGs2zeWisNSxMW6hU6Hkj",
  "controller_address": "5xot9PVkphiX2adznghwrAuxGs2zeWisNSxMW6hU6Hkj"
}

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'polkadot' required

Polkadot protocol

network'mainnet' | 'kusama' | 'westend' required

Coin network

Example response

{
  "stake_intent_id": "stake_intent_Wgx98Rbi8nQuL9ddn3mTk1",
  "customer_id": "SatoshiNakamoto-xUYJbPw9hw",
  "plan_id": "plan_Wgx98Rbi8nQuL9ddn3mTk1",
  "polkadot": {
    "unsigned_transaction": "0xa4041601008c16e19e94328985d65cb7e3245213892730dd0e841f6511478cb12f23a178330100000000",
    "customer_address": "5xot9PVkphiX2adznghwrAuxGs2zeWisNSxMW6hU6Hkj",
    "controller_address": "5xot9PVkphiX2adznghwrAuxGs2zeWisNSxMW6hU6Hkj",
    "proxy_address": "5xot9PVkphiX2adznghwrAuxGs2zeWisNSxMW6hU6Hkj"
  }
}