Approve the creation of a solana Stake

Approve the creation of a solana Stake.

Security(Ledger_API_Key and Ledger_API_User) or Ledger_API_Key and Ledger_API_User and Ledger_Store_Auth_Token) or Ledger_API_User or Ledger_API_User and Ledger_Store_Auth_Token)
Request
path Parameters
account_id
required
integer

The account's ID

stake_id
required
integer

The stake's ID

Request Body schema: application/json

attributes of the stake to create

account_name
string or null
Default: null

The account's name.

amount
required
integer

The amount to stake

request_id
required
integer

The id of the staking creation or operation request to approve.

validator
required
string

The validator to use for staking

Responses
200

Vault stake object

400

Invalid staking parameters

post/solana/accounts/{account_id}/stakes/{stake_id}/approve
Request samples
application/json
{
  • "account_name": "Staking Account",
  • "amount": "7653545",
  • "request_id": 42,
  • "validator": "4QUZQ4c7bZuJ4o4L8tYAEGnePFV27SUFEVmC7BYfsXRp"
}
Response samples
application/json
{
  • "amount": 10000,
  • "blockchain_state": {
    },
  • "created_by": 42,
  • "created_on": "2023-02-01T16:37:15Z",
  • "creation_tx": 42,
  • "id": 42,
  • "last_request": 42,
  • "stake_uid": "36f0e48508f2f37e5fa15dcca43b1fa027485cf56cd974c1b67f43e82b9f121b-2cEjgbKkWASHgu6aRgxAzrGAKVfwesXvHhfQNZ7QinSD",
  • "status": "PENDING",
  • "total_reward": "10000",
  • "validator": "4QUZQ4c7bZuJ4o4L8tYAEGnePFV27SUFEVmC7BYfsXRp"
}
Copyright © Ledger Enterprise Platform 2023. All right reserved.