Approve Transaction

Generates an approval transaction that allows a specified vault to deposit a given ERC20 asset on behalf of the user. This is a prerequisite for interacting with Kiln DeFi Vaults as they require asset allowances before deposits.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Payload containing the necessary parameters to craft the approval transaction.

string
required

The Ethereum address of the user initiating the approval.

string
required

The contract address of the ERC20 token being approved for deposit. For Kiln DeFi It will be the asset address you will get from the /network-stats route for the vault you want to deposit into.

integer
required

The unique identifier of the blockchain network where the transaction is executed (e.g., 1 for Ethereum Mainnet).

string
required

The contract address of the vault that will receive the asset deposit authorization.

string
required

Amount to approve in the lowest unit of the asset (ie amount * 10**asset_decimals)

boolean
Defaults to false

If true, bypasses existing approval checks and proceeds with creating a new approval transaction regardless of current allowance.

Responses

204

The amount is already approved

401

Unauthorized

500

Internal server error

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json; charset=utf-8