Using these APIs you can perform actions that you can do on dashboard UI like creating or deleting smart contracts or a method of the contract without manually accessing the dashboard.
API lets you create a new dapp.
Using the authToken generated from the Account section, one can add create a new dapp for given network id.
Headers
Name
Type
Description
authToken
string
Token unique to every user account
Request Body
Name
Type
Description
dappName*
String
Name of the dapp you want to set
networkId
String
Network id on which you want to register your dapp on
enableBiconomyWallet
String
Can be set as 'true' or 'false' is you want Biconomy Wallet feature (for SDK version 2.0.38)
{
code: 200,
message: 'Dapp registered successfully',
data: {
apiKey: 'UxTyLRqlJ.1cb6b15c-6351-4f30-9a56-30d7b143d167', // apiKey is used to init biconomy instance to relay transactions for this Dapp
fundingKey: 1655702620000 // This funding key can be used to recharge gas tank
}
}
{ code: 401, message: 'Failure in authentication', responseCode: 401 }
{ code: 500, message: 'Something went wrong', responseCode: 500 }
API lets you add a new smart contract to an already registered dapp.
Using the authToken generated from the Account section and the apiKey of a dapp, one can add a new smart contract for that dapp.
Headers
Name
Type
Description
authToken*
string
Token unique to every user account
apiKey*
string
Api Key unique to every dapp
Request Body
Name
Type
Description
contractName*
string
Name of the smart contract
contractAddress*
string
Address of the smart contract
abi*
string
Abi of the smart contract
contractType*
string
"SC" or "SCW" if it is a Smart Contract or Smart Contract Wallet
walletType*
string
For contractType "SCW", walletType is "GNOSIS", otherwise leave blank.
metaTransactionType*
string
"DEFAULT", "TRUSTED_FORWARDER", "ERC20_FORWARDER" based on type of meta transaction
API lets you delete a smart contract.
Using the authToken generated from the Account section and the apiKey of a dapp, one can delete a smart contract of that dapp.
Using the authToken generated from the Account section and the apiKey of a dapp and API lets you add a contract method of an already registered smart-contract.
Using authToken and the apiKey of a dapp and the contract address of a smart contract, API lets you delete an already registered method from the dashboard.
webHookId that you got while registering your webHook
active*
String
'true' or 'false'
{
code: 200,
message: 'WebHook: <YOUR WEBHOOK> set to false for dappId: 62ea418f2945e82d28dc5d26 with webHookId: d9a6e587-0fea-4e06-a1ea-bce0e5b9c410',
responseCode: 200
}