attest
nonpayable
Use this function in your app
const response = await fetch('https://api.thirdweb.com/v1/contracts/write', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-secret-key': '<YOUR_SECRET_KEY>'
},
body: JSON.stringify({
calls: [
{
contractAddress: "0x39fb5E85C7713657c2D9E869E974FF1e0B06F20C",
method: "function attest((bytes32 schema, (address recipient, uint64 expirationTime, bool revocable, bytes32 refUID, bytes data, uint256 value) data) request) returns (bytes32)",
params: [request]
}
],
chainId: 534352,
from: "<YOUR_WALLET_ADDRESS>"
})
});
const data = await response.json();