AttesterProxy

Scroll
Scrollscan
Code Snippets

attest

nonpayable

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

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();