Skip to main content
POST
/
api
/
v1
/
staking
/
transactions
/
build
Build staking transaction
curl --request POST \
  --url https://api.example.com/api/v1/staking/transactions/build \
  --header 'Content-Type: application/json' \
  --data '
{
  "productId": "base_usdc_nexfi_vault",
  "orderType": "subscribe",
  "walletAddress": "0xabc1230000000000000000000000000000000000",
  "amount": "1000"
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "buildId": "build_20260511_0001",
    "chainId": 8453,
    "to": "0xvault000000000000000000000000000000000001",
    "value": "0",
    "data": "0xb6b55f25",
    "gasLimit": "280000",
    "warnings": [
      "APY is estimated and not guaranteed"
    ],
    "sharesPreview": "998.12",
    "feePreview": "1.50",
    "vaultAddress": "0xvault000000000000000000000000000000000001"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.nexfi.robert.dpdns.org/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json

Staking transaction build request.

productId
string
required

Product ID.

Example:

"base_usdc_nexfi_vault"

orderType
enum<string>
required

Order type.

Available options:
subscribe,
redeem
Example:

"subscribe"

walletAddress
string
required

Wallet address.

Example:

"0xabc1230000000000000000000000000000000000"

amount
string
required

Subscription amount or redeem amount, depending on flow.

Example:

"1000"

Response

200 - application/json

Transaction build response

Standard response envelope.

code
integer
required

Business status code. 0 means success.

Example:

0

msg
string
required

Human-readable response message.

Example:

"ok"

data
object

Built transaction payload for wallet-side signing.