v1

latestOpenAPI 3.1.02026-07-24223580832.9 KB
Solana

Post Stake Intent

Returns a unsigned transaction to stake SOL to a newly created stake account

post/v2/solana/{network}/stake-intent

Path parameters

networkstring required
Example:mainnet

The target Solana network (allowed 'mainnet' or 'testnet').

Request body

amountinteger required

The amount of funds you want to stake (in Lamports).

delegator_addressstring required

The address of the account that will pay the transaction fee.

networkstring

The target Solana network (allowed 'mainnet' or 'testnet').

validator_vote_pubkeystring required

The public address of the validator node that you intend to delegate your tokens to.

Example request

{
  "delegator_address": "75q6kcecNQhawj1dCmPWhfootfQBnZh7iWnNjoXTJv79",
  "network": "mainnet",
  "validator_vote_pubkey": "XrrvMBatuWaW55pmTJp4mTS2ZyURtXyUi6TpoMQ2kN5"
}

Response

OK

estimated_feeinteger required

The estimated fee for the transaction.

instruction_countinteger required

The number of instructions in the transaction.

networkstring

The target Solana network (allowed 'mainnet' or 'testnet').

stake_account_pubkeystring required

The address of the stake account.

unsigned_transactionstring required

Base64-encoded, serialized Solana transaction to be signed and submitted.

validator_vote_pubkeystring required

The address of the validator vote account.

Example response

{
  "estimated_fee": 1000000000,
  "instruction_count": 1,
  "metadata": {
    "minimum_rent_exemption": 500,
    "total_cost": 1500
  },
  "network": "mainnet",
  "stake_account_pubkey": "75q6kcecNQhawj1dCmPWhfootfQBnZh7iWnNjoXTJv79",
  "validator_vote_pubkey": "75q6kcecNQhawj1dCmPWhfootfQBnZh7iWnNjoXTJv79"
}