Scrollscan

Attest

(attest)

payable


request

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).

Sign In

Use this function in your app


import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function attest((bytes32 schema, (address recipient, uint64 expirationTime, bool revocable, bytes32 refUID, bytes data, uint256 value) data) request) payable returns (bytes32)",
params: [request]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});