actionCreators: {
    addKey: ((publicKey, accessKey) => Action);
    createAccount: (() => Action);
    deleteAccount: ((beneficiaryId) => Action);
    deleteKey: ((publicKey) => Action);
    deployContract: ((code) => Action);
    fullAccessKey: (() => AccessKey);
    functionCall: ((methodName, args, gas?, deposit?, stringify?, jsContract?) => Action);
    functionCallAccessKey: ((receiverId, methodNames, allowance?) => AccessKey);
    signedDelegate: ((__namedParameters) => Action);
    stake: ((stake?, publicKey) => Action);
    transfer: ((deposit?) => Action);
} = ...

Type declaration

  • addKey: ((publicKey, accessKey) => Action)
  • createAccount: (() => Action)
  • deleteAccount: ((beneficiaryId) => Action)
      • (beneficiaryId): Action
      • Parameters

        • beneficiaryId: string

        Returns Action

  • deleteKey: ((publicKey) => Action)
      • (publicKey): Action
      • Parameters

        • publicKey: PublicKey

        Returns Action

  • deployContract: ((code) => Action)
  • fullAccessKey: (() => AccessKey)
  • functionCall: ((methodName, args, gas?, deposit?, stringify?, jsContract?) => Action)
      • (methodName, args, gas?, deposit?, stringify?, jsContract?): Action
      • Constructs Action instance representing contract method call.

        Parameters

        • methodName: string

          the name of the method to call

        • args: object | Uint8Array

          arguments to pass to method. Can be either plain JS object which gets serialized as JSON automatically or Uint8Array instance which represents bytes passed as is.

        • gas: BN = ...

          max amount of gas that method call can use

        • deposit: BN = ...

          amount of NEAR (in yoctoNEAR) to send together with the call

        • stringify: ((args) => Buffer) = stringifyJsonOrBytes

          Convert input arguments into bytes array.

            • (args): Buffer
            • Parameters

              • args: any

              Returns Buffer

        • jsContract: boolean = false

          Is contract from JS SDK, skips stringification of arguments.

        Returns Action

  • functionCallAccessKey: ((receiverId, methodNames, allowance?) => AccessKey)
      • (receiverId, methodNames, allowance?): AccessKey
      • Parameters

        • receiverId: string
        • methodNames: string[]
        • Optional allowance: BN

        Returns AccessKey

  • signedDelegate: ((__namedParameters) => Action)
  • stake: ((stake?, publicKey) => Action)
      • (stake?, publicKey): Action
      • Parameters

        • stake: BN = ...
        • publicKey: PublicKey

        Returns Action

  • transfer: ((deposit?) => Action)

Generated using TypeDoc