near-api-js - v7.0.4
    Preparing search index...

    Type Alias StateChangeWithCauseView

    StateChangeWithCauseView: (
        | {
            change: {
                account_id: AccountId;
                amount: NearToken;
                code_hash: CryptoHash;
                global_contract_account_id?: AccountId
                | null;
                global_contract_hash?: CryptoHash | null;
                locked: NearToken;
                storage_paid_at?: number;
                storage_usage: number;
            };
            type: "account_update";
        }
        | { change: { account_id: AccountId }; type: "account_deletion" }
        | {
            change: {
                access_key: AccessKeyView;
                account_id: AccountId;
                public_key: PublicKey;
            };
            type: "access_key_update";
        }
        | {
            change: { account_id: AccountId; public_key: PublicKey };
            type: "access_key_deletion";
        }
        | {
            change: {
                account_id: AccountId;
                gas_key: GasKey;
                public_key: PublicKey;
            };
            type: "gas_key_update";
        }
        | {
            change: {
                account_id: AccountId;
                index: number;
                nonce: number;
                public_key: PublicKey;
            };
            type: "gas_key_nonce_update";
        }
        | {
            change: { account_id: AccountId; public_key: PublicKey };
            type: "gas_key_deletion";
        }
        | {
            change: {
                account_id: AccountId;
                key_base64: StoreKey;
                value_base64: StoreValue;
            };
            type: "data_update";
        }
        | {
            change: { account_id: AccountId; key_base64: StoreKey };
            type: "data_deletion";
        }
        | {
            change: { account_id: AccountId; code_base64: string };
            type: "contract_code_update";
        }
        | { change: { account_id: AccountId }; type: "contract_code_deletion" }
    ) & { cause: StateChangeCauseView }

    Type Declaration

    • {
          change: {
              account_id: AccountId;
              amount: NearToken;
              code_hash: CryptoHash;
              global_contract_account_id?: AccountId | null;
              global_contract_hash?: CryptoHash | null;
              locked: NearToken;
              storage_paid_at?: number;
              storage_usage: number;
          };
          type: "account_update";
      }
      • change: {
            account_id: AccountId;
            amount: NearToken;
            code_hash: CryptoHash;
            global_contract_account_id?: AccountId | null;
            global_contract_hash?: CryptoHash | null;
            locked: NearToken;
            storage_paid_at?: number;
            storage_usage: number;
        }

        A view of the account

      • type: "account_update"
    • { change: { account_id: AccountId }; type: "account_deletion" }
    • {
          change: {
              access_key: AccessKeyView;
              account_id: AccountId;
              public_key: PublicKey;
          };
          type: "access_key_update";
      }
    • {
          change: { account_id: AccountId; public_key: PublicKey };
          type: "access_key_deletion";
      }
    • {
          change: {
              account_id: AccountId;
              gas_key: GasKey;
              public_key: PublicKey;
          };
          type: "gas_key_update";
      }
    • {
          change: {
              account_id: AccountId;
              index: number;
              nonce: number;
              public_key: PublicKey;
          };
          type: "gas_key_nonce_update";
      }
    • {
          change: { account_id: AccountId; public_key: PublicKey };
          type: "gas_key_deletion";
      }
    • {
          change: {
              account_id: AccountId;
              key_base64: StoreKey;
              value_base64: StoreValue;
          };
          type: "data_update";
      }
    • {
          change: { account_id: AccountId; key_base64: StoreKey };
          type: "data_deletion";
      }
    • {
          change: { account_id: AccountId; code_base64: string };
          type: "contract_code_update";
      }
    • { change: { account_id: AccountId }; type: "contract_code_deletion" }