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

    Interface ClientNearSigner

    NEAR signer interface for client operations

    interface ClientNearSigner {
        accountId: string;
        signAndSendTransaction(
            receiverId: string,
            methodName: string,
            args: Record<string, unknown>,
            gas: string,
            deposit: string,
        ): Promise<string>;
    }
    Index

    Properties

    accountId: string

    Get the account ID

    Methods

    • Sign and send a transaction

      Parameters

      • receiverId: string

        Contract to call

      • methodName: string

        Method to call

      • args: Record<string, unknown>

        Method arguments

      • gas: string

        Gas to attach

      • deposit: string

        yoctoNEAR to attach

      Returns Promise<string>

      Transaction hash