TrustgoPortal

Linea
EtherscanBlockscout

Attest

(attest)

payable


attestationPayload

Input should be passed in JSON format - Ex: { "schemaId": "0", "expirationDate": "0", "subject": "0", "attestationData": "0" }

validationPayloads

Input should be passed in JSON format - Ex: ["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 schemaId, uint64 expirationDate, bytes subject, bytes attestationData) attestationPayload, bytes[] validationPayloads) payable",
params: [attestationPayload, validationPayloads]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});