Skip to main content
POST
/
transactions
/
stake
Create a stake request
curl --request POST \
  --url https://api.anchorage-staging.com/v2/transactions/stake \
  --header 'Api-Access-Key: <api-key>' \
  --header 'Api-Signature: <api-signature>' \
  --header 'Api-Timestamp: <api-timestamp>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "32",
  "assetType": "ETH",
  "idempotentId": "12838927347",
  "source": {
    "id": "1c920f4241b78a1d483a29f3c24b6c4c",
    "type": "WALLET"
  },
  "description": "Internal ID: #12838927347",
  "parameters": {
    "stakingProviderAddress": "<string>"
  }
}
'
{
  "data": {
    "transactionId": "8696144cca28a634c05858d00e51191408498a7808a837fc4645b4b6997dde09"
  }
}
Signed and idempotent. The signer injects idempotentId into the body before computing the signature.

Authorizations

Api-Access-Key
string
header
required

An API key associated with a security role

Headers

Api-Signature
string
required

A hex-encoded Ed25519 signature of timestamp_epoch_seconds + uppercase(http_method) + request_path + request_body.

Construction example: toHex( ed25519Sign( signing_key, '{}{}{}{}'.format(timestamp_epoch_seconds, toUpper(httpMethod), httpRequestPath, httpBody) ) )

Pattern: ^[0-9A-Fa-f]{128,160}$
Api-Timestamp
integer<int64>
required

Current timestamp, represented as unix epoch seconds

Body

application/json
amount
string
required

An amount of a crypto-asset to transfer, without units. The unit is derived from the asset type.

Example:

"32"

assetType
string
required

A string representing a type of crypto-asset, which usually corresponds to the crypto asset's ticker symbol.

Use /asset-types to list all of the supported asset types for your organization.

Example:

"ETH"

idempotentId
string
required

A client-provided unique ID for idempotent requests

Maximum string length: 128
Example:

"12838927347"

source
SimpleSourceResourceDetails · object
required

An object representing a resource capable of sending funds.

Construction example: { "id":"1c920f4241b78a1d483a29f3c24b6c4c", "type":"WALLET" }

description
string | null

An optional string providing more context to this transaction. It will be visible on the Anchorage Digital iOS app and will not be published to the blockchain.

Example:

"Internal ID: #12838927347"

parameters
SOLStakingParameters · object

UNDER DEVELOPMENT: Solana specific staking parameters

Response

Successfully initiated a stake transaction

data
CreateStakeDetails · object
required
Example:
{
"transactionId": "8696144cca28a634c05858d00e51191408498a7808a837fc4645b4b6997dde09"
}