writeAttestation.ts 455 Bytes
Newer Older
Will Cory's avatar
Will Cory committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import { writeContract } from '@wagmi/core'
export { prepareWriteAttestation } from './prepareWriteAttestation'

export { abi } from './abi'

/**
 * Writes an attestation to the blockchain
 * Same function as `writeContract` from @wagmi/core
 * To use first use prepareWriteContract
 *
 * @example
 * const config = await prepareAttestation(about, key, value)
 * const tx = await writeAttestation(config)
 */
export const writeAttestation = writeContract