BACKEND_WALLET
view
Use this function in your app
const response = await fetch('https://api.thirdweb.com/v1/contracts/read', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-secret-key': '<YOUR_SECRET_KEY>'
},
body: JSON.stringify({
calls: [
{
contractAddress: "0xDfbB0D1B82c5DeE8ab44575F1badBBf5B6D8F91B",
method: "function BACKEND_WALLET() view returns (address)",
params: []
}
],
chainId: 137
})
});
const data = await response.json();