attest

payable

Input should be passed in JSON format - Ex: { "schema": "0", "data": { "recipient": "0x...", "expirationTime": "0", "revocable": true, "refUID": "0", "data": "0", "value": "0" } }

The native currency value (in Ether) to send with this transaction (ex: 0.01 to send 0.01 native currency).

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: "0xC47300428b6AD2c7D03BB76D05A176058b47E6B0", method: "function attest((bytes32 schema, (address recipient, uint64 expirationTime, bool revocable, bytes32 refUID, bytes data, uint256 value) data) request) payable returns (bytes32)", params: [request] } ], chainId: 534352, from: "<YOUR_WALLET_ADDRESS>" }) }); const data = await response.json();