API Reference

Create a "stake" transaction

BETA FEATURE - Please contact team to be whitelisted.

Create transaction objects to interact with an EVM blockchain for a specified user.

Log in to see full request history
Path Params
string
required
Defaults to ethereum

The blockchain that will be used for this request.

string
required
Defaults to 0xdf0770df86a8034b3efef0a1bb3c889b8332ff56

The address of the pool that will be used for this request.

Body Params

To create stake interaction objects, the body of the request must contain:

  • user
  • amount
string
required
Defaults to 0x45E954acf1Efc374478dF69B45f12AEFD8AE51a3
number
required
Defaults to 20
boolean
Defaults to true

If selected to true, the API will not check if the provided user's address has enought token to perform the action.

boolean
Defaults to false

If selected to true, the API will put the maximum amount for the approval action.

boolean
Defaults to false

BETA FEATURE (only Ethereum, Polygon and Arbitrum chains for now) - If selected to true, the API will return the gas limit necessary for the action.

boolean
Defaults to false

BETA FEATURE - If selected to true, the API will return the estimation of token you will receive with this action in a specific "estimate" object. Be careful, this option changes the return type of the API to have two objects: "estimate" and "transactions".

string

Please specify the address, the string or the referral number you want to specify into the action. This referral code will be provided to the protocol for the action.

Responses

approveTx might be null if there is no need for an approval.

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json