Query Parameters

Required Parameters

Field Name
Required
Description

apiKey

REQUIRED

Unique API key for your account

environment

REQUIRED

STAGING or PRODUCTION

tokens

REQUIRED

Array of destination tokens and associated percentage (%) amount of original transaction amount to be spent on each token

Customization Parameters

Field Name
Required
Description

restrictedCountries

NOT REQUIRED

Countries where widget will be hidden Enter as array of country codes

restrictedFiatCountries

NOT REQUIRED

Countries where fiat option will be hidden

Enter as array of country codes

disableFiat

NOT REQUIRED

TRUE or FALSE to disable fiat-related transaction options

disableCrossChain

NOT REQUIRED

TRUE or FALS E to disable x-chain related transaction options

Integrated Smart Contract Parameters

These parameters will only work if your smart contract has already been integrated with InstaFi.

Field Name
Required
Description

depositToContract

NOT REQUIRED

TRUE or FALSE if the tokens purchased will be automatically deposited into your smart contract

protocol

NOT REQUIRED

Protocol name that is pre-determined with InstaFi team

destinationContract

NOT REQUIRED

Address of smart contracts where user will be deposit funds

Last updated