Taquito TypeDocs
    Preparing search index...
    Index

    Constructors

    Methods

    • Create an smart contract abstraction for the address specified. Calling entrypoints with the returned smart contract abstraction will leverage the wallet provider to make smart contract calls

      Type Parameters

      Parameters

      Returns Promise<T>

      InvalidContractAddressError If the contract address is not valid

    • Retrieve the PK of the account that is currently in use by the wallet

      Parameters

      • option: PKHOption = {}

        Option to use while fetching the PK. If forceRefetch is specified the wallet provider implementation will refetch the PK from the wallet

      Returns Promise<string>

    • Retrieve the PKH of the account that is currently in use by the wallet

      Parameters

      • option: PKHOption = {}

        Option to use while fetching the PKH. If forceRefetch is specified the wallet provider implementation will refetch the PKH from the wallet

      Returns Promise<string>

    • failing_noop operation that is guaranteed to fail. DISCLAIMER: Not all wallets support signing failing_noop operations.

      Parameters

      Returns Promise<
          {
              bytes: string;
              signature: string;
              signedContent: {
                  branch: string;
                  contents: { arbitrary: string; kind: OpKind }[];
              };
          },
      >

      Signature for a failing_noop

    • Unstake the given amount. If "everything" is given as amount, unstakes everything from the staking balance. Unstaked tez remains frozen for a set amount of cycles (the slashing period) after the operation. Once this period is over, the operation "finalize unstake" must be called for the funds to appear in the liquid balance.

      Parameters

      Returns { send: () => Promise<TransactionWalletOperation> }

      a TransactionWalletOperation promise object when followed by .send()