T402 API Reference - v2.8.0
    Preparing search index...

    Interface ERC8004WriteClient

    Write-capable client for submitting feedback and validation

    interface ERC8004WriteClient {
        readContract(
            args: {
                address: `0x${string}`;
                abi: readonly unknown[];
                functionName: string;
                args?: readonly unknown[];
            },
        ): Promise<unknown>;
        writeContract(
            args: {
                address: `0x${string}`;
                abi: readonly unknown[];
                functionName: string;
                args: readonly unknown[];
            },
        ): Promise<`0x${string}`>;
        waitForTransactionReceipt(
            args: { hash: `0x${string}` },
        ): Promise<{ status: string }>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Parameters

      • args: {
            address: `0x${string}`;
            abi: readonly unknown[];
            functionName: string;
            args?: readonly unknown[];
        }

      Returns Promise<unknown>

    • Parameters

      • args: {
            address: `0x${string}`;
            abi: readonly unknown[];
            functionName: string;
            args: readonly unknown[];
        }

      Returns Promise<`0x${string}`>

    • Parameters

      • args: { hash: `0x${string}` }

      Returns Promise<{ status: string }>