πDashboard APIs
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.
Generate AUTH token
Register & Login to https://dashboard-gasless.biconomy.io/
Go to the "Account" tab on left menu to view your Auth Token.
You can regenerate you Auth Token by clicking on the
Regenerate Tokenbutton.
API to create a new dapp
POST https://api.biconomy.io/api/v1/dapp/public-api/create-dapp
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
authToken
string
Token unique to every user account
Request Body
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)
API to add a new smart contract for a given dapp
POST https://api.biconomy.io/api/v1/smart-contract/public-api/addContract
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
authToken*
string
Token unique to every user account
apiKey*
string
Api Key unique to every dapp
Request Body
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 to delete a smart contract from dashboard for a given dapp
DELETE https://api.biconomy.io/api/v1/smart-contract/public-api/deleteContract
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.
Headers
authToken*
string
Token unique to every user
apiKey*
string
Api Key unique to every dapp
Request Body
contractType*
string
SC/SCW
contractAddress*
string
Address of the smart contract
API to add a method for a given dapp and smart contract address
POST https://api.biconomy.io/api/v1/meta-api/public-api/addMethod
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.
Headers
authToken*
string
Token unique to every user account
apiKey*
string
Api Key unique to every dapp
Request Body
apiType*
string
native/custom
methodType*
string
"read"/"write" based on the method type
name*
string
Placeholder name
contractAddress*
string
contract address
method*
string
Method name on smart contract
API to delete a method for a given dapp and smart contract address
DELETE https://api.biconomy.io/api/v1/meta-api/public-api/addMethod
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.
Headers
authToken*
string
Token unique to every user account
apiKey*
string
Api-Key unique to every dapp
Request Body
contractAddress*
string
Address of the smart contract
method*
string
Method name on the smart contract
You can register webhooks (post and get API calls) which would be executed before sending a transaction.
POST https://api.biconomy.io/api/v1/dapp/register-webhook
If webhook returns true the transaction goes through and in case of false the transaction fails.
Headers
authToken*
String
Token unique to every user account
apiKey*
String
Api-Key unique to every dapp
Request Body
webHook*
String
webHook url
requestType*
String
post/get
In case you want to activate or deactivate your current webhook
PATCH https://api.biconomy.io/api/v1/dapp/update-webhook
Headers
authToken*
String
Token unique to every user account
apiKey*
String
Api-Key unique to every dapp
Request Body
webHookId*
String
webHookId that you got while registering your webHook
active*
String
'true' or 'false'
Dashboard APIs from backend
Adding a Dapp
Adding a smart contract
Deleting a smart contract
Adding a meta API
Deleting a meta API
Registering A Webhook
Updating A Webhook
Last updated
Was this helpful?