Create a Stake

Create a 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

Request Body schema: application/json

attributes of the staking to create

gas_limit
string or null >= 1 ^[0-9]*(\.[0-9]+)?$
Default: null

For Ethereum, specify a gas_limit, ignored if speed is not CUSTOM. The unit is wei. Decimal values are round down to integer

gas_price
string or null >= 1 ^[0-9]*(\.[0-9]+)?$
Default: null

For Ethereum, specify a gas_price, ignored if speed is not CUSTOM. The unit is wei. Decimal values are round down to integer

max_fees
required
string^[0-9]*(\.[0-9]+)?$

Max fees represent the highest possible fee amount you will pay to broadcast this transaction. The final fees, calculated once the transaction is approved by the last Operator, might be lower, but will never exceed that amount. We recommend estimating max fees through our fee estimation endpoint prior to creating the transaction request. See https://help.vault.ledger.com/Content/transactions/tx.html for details.

provider
required
string

The provider you want to stake with

Value: "kiln"
required
object

Specific provider fields to stake

speed
required
string

The speed of the transaction

Enum: "CUSTOM" "FAST" "NORMAL" "SLOW"
Responses
200

Transaction to approve

400

Invalid staking parameters

post/ethereum/accounts/{account_id}/stakes
Request samples
application/json
{
  • "gas_limit": "5354365",
  • "gas_price": "5354365",
  • "max_fees": "string",
  • "provider": "kiln",
  • "provider_fields": {
    },
  • "speed": "NORMAL"
}
Response samples
application/json
{
  • "account_id": 1,
  • "account_index": 0,
  • "amount": "1432199",
  • "block": null,
  • "broadcast_on": "2020-12-11T12:56:35.370946+00:00",
  • "coin_fields": {
    },
  • "compliance": null,
  • "confirmations": 28,
  • "created_by": 5,
  • "created_on": "2019-08-24T14:15:22Z",
  • "currency": "bitcoin",
  • "currency_family": "ethereum",
  • "fees": 17500,
  • "id": 0,
  • "interaction_type": null,
  • "labels": [
    ],
  • "last_request": null,
  • "max_fees": 2100,
  • "metadata": null,
  • "min_confirmations": 6,
  • "notes": [
    ],
  • "recipient": "tb1q2tvjts80vthcywq9au2yynpezca57mvv0j7lzm",
  • "senders": [
    ],
  • "speed": "NORMAL",
  • "status": "PENDING_APPROVAL",
  • "tx_hash": "cd199dd0c61ff75c7a442e425771fedfe07e191a76aed64b6a311ec4a369b20e",
  • "type": "SEND",
  • "uid": null
}
Copyright © Ledger Enterprise Platform 2023. All right reserved.