Whitelist Destination Address

Authorize your DApp User's Destination Contracts

If you have implemented native meta transactions via external contract wallet approach like gnosis or argent, you need to whitelist all Destination contracts where your proxy contracts will relay the transactions.

This guide will help you whitelist destination contracts.

Before using this API, make sure you have generated an access token from the dashboard which is visible in you View DApp section on dashboard.

post
/api/v1/dapp/whitelist/destination

https://api.biconomy.io/api/v1/dapp/whitelist/destination
Request
Response
Request
Headers
Authorization
required
string
Auth Token generated from the dashboard. This is specific to the DApp registered and should be in the format "User <token generated>"
Body Parameters
destinationAddresses
required
array
Array of destination contract addresses to be whitelisted.
Response
200: OK
{
"code": 200,
"message": "Addresses whitelisted successfully except duplicate addresses or invalid addresses",
"registeredCount": 0,
"duplicateContracts": [
"0xf676922ba0564b6925bc9142cxxxxxxxxxxx"
],
"invalidContracts": [
"0xf676922ba0xxxxxxx"
]
}
400: Bad Request
{
"code": 400,
"message": "Enter valid contract address "
}
401: Unauthorized
{
"code": 401,
"message": "Not Authorized"
}