toncenter-js
    Preparing search index...

    Class TonHttpApiV3

    Index

    Constructors

    Methods

    • Estimate fee for external message.

      Parameters

      • address: string
      • body: string
      • init_code: string
      • init_data: string
      • ignore_chksig: boolean

      Returns Promise<
          {
              destination_fees: {
                  fwd_fee: number;
                  gas_fee: number;
                  in_fwd_fee: number;
                  storage_fee: number;
              }[];
              source_fees: {
                  fwd_fee: number;
                  gas_fee: number;
                  in_fwd_fee: number;
                  storage_fee: number;
              };
          },
      >

    • Get smart contract information.

      Parameters

      • address: string

      Returns Promise<
          {
              balance: string;
              code: null
              | string;
              data: null | string;
              frozen_hash: null | string;
              last_transaction_hash: null | string;
              last_transaction_lt: null | string;
              status: "active" | "frozen" | "uninit" | "nonexist";
          },
      >

    • Query account states for multiple addresses.

      Parameters

      • addresses: string[]

        List of addresses (max 1024)

      • include_boc: boolean = true

        Include code and data BOCs (default: true)

      Returns Promise<
          {
              accounts: {
                  account_state_hash: string;
                  address: string;
                  balance: string;
                  code_boc: string;
                  code_hash: string;
                  contract_methods: any;
                  data_boc: string;
                  data_hash: string;
                  extra_currencies: { [key: string]: unknown };
                  last_transaction_hash: string;
                  last_transaction_lt: string;
                  status: string;
              }[];
              address_book?: Record<string, { user_friendly: string }>;
              metadata?: { [key: string]: unknown };
          },
      >

    • Get actions by specified filter.

      Parameters

      • Optionaloptional: {
            account?: string;
            action_id?: string[];
            action_type?: string[];
            end_lt?: number;
            end_utime?: number;
            exclude_action_type?: string[];
            include_accounts?: boolean;
            limit?: number;
            mc_seqno?: number;
            msg_hash?: string[];
            offset?: number;
            sort?: "asc" | "desc";
            start_lt?: number;
            start_utime?: number;
            supported_action_types?: string[];
            trace_id?: string[];
            tx_hash?: string[];
        }

        Filter parameters for actions

      Returns Promise<
          {
              actions: {
                  action_id: string;
                  details: {
                      amount?: string;
                      asset?: string;
                      comment?: null
                      | string;
                      custom_payload?: null | string;
                      destination?: string;
                      encrypted?: boolean;
                      forward_amount?: string;
                      forward_payload?: null | string;
                      is_encrypted_comment?: boolean;
                      query_id?: string;
                      receiver?: string;
                      receiver_jetton_wallet?: string;
                      response_destination?: string;
                      sender?: string;
                      sender_jetton_wallet?: string;
                      source?: string;
                      value?: string;
                      value_extra_currencies?: { [key: string]: unknown };
                  };
                  end_lt: string;
                  end_utime: number;
                  start_lt: string;
                  start_utime: number;
                  success: boolean;
                  trace_end_lt: string;
                  trace_end_utime: number;
                  trace_external_hash: string;
                  trace_external_hash_norm?: string;
                  trace_id: string;
                  trace_mc_seqno_end: number;
                  transactions: string[];
                  type: string;
              }[];
              address_book?: Record<string, { user_friendly: string }>;
              metadata?: Record<
                  string,
                  {
                      is_indexed: boolean;
                      token_info?: {
                          description?: string;
                          extra?: { [key: string]: unknown };
                          image?: string;
                          name?: string;
                          symbol?: string;
                          type: string;
                          valid: boolean;
                      }[];
                  },
              >;
          },
      >

    • Query address book for multiple addresses.

      Parameters

      • addresses: string[]

        List of addresses (max 1024)

      Returns Promise<Record<string, { user_friendly: string }>>

    • Get parent and/or children for specified transaction.

      Parameters

      • hash: string
      • Optionaloptional: {
            direction?: "out" | "in" | "both";
            limit?: number;
            offset?: number;
            sort?: "asc" | "desc";
        }

      Returns Promise<
          {
              address_book: Record<string, { user_friendly: string }>;
              transactions: {
                  account: string;
                  account_state_after:
                      | null
                      | {
                          account_status: null
                          | "active"
                          | "frozen"
                          | "uninit"
                          | "nonexist";
                          balance: null | string;
                          code_hash: null | string;
                          data_hash: null | string;
                          extra_currencies?: null | Record<string, string>;
                          frozen_hash: null | string;
                          hash: string;
                      };
                  account_state_before: | null
                  | {
                      account_status: null
                      | "active"
                      | "frozen"
                      | "uninit"
                      | "nonexist";
                      balance: null | string;
                      code_hash: null | string;
                      data_hash: null | string;
                      extra_currencies?: null | Record<string, string>;
                      frozen_hash: null | string;
                      hash: string;
                  };
                  block_ref: null
                  | { seqno: number; shard: string; workchain: number };
                  description: {
                      aborted?: boolean;
                      action?: {
                          action_list_hash: string;
                          msgs_created: number;
                          no_funds: boolean;
                          result_arg?: number;
                          result_code: number;
                          skipped_actions: number;
                          spec_actions: number;
                          status_change: string;
                          success: boolean;
                          tot_actions: number;
                          tot_msg_size_bits?: number;
                          tot_msg_size_cells?: number;
                          total_action_fees?: string;
                          total_fwd_fees?: string;
                          valid: boolean;
                      };
                      bounce?: {
                          fwd_fees?: string;
                          msg_fees?: string;
                          msg_size_bits?: number;
                          msg_size_cells?: number;
                          req_fwd_fees?: string;
                          type: string;
                      };
                      compute_ph?: {
                          account_activated?: boolean;
                          exit_arg?: number;
                          exit_code?: number;
                          gas_credit?: string;
                          gas_fees?: string;
                          gas_limit?: string;
                          gas_used?: string;
                          mode?: number;
                          msg_state_used?: boolean;
                          success?: boolean;
                          type?: string;
                          vm_final_state_hash?: string;
                          vm_init_state_hash?: string;
                          vm_steps?: number;
                      };
                      credit_first?: boolean;
                      credit_ph?: { credit?: string; fees_collected?: string };
                      destroyed?: boolean;
                      installed?: boolean;
                      is_tock?: boolean;
                      split_info?: {
                          acc_split_depth: number;
                          cur_shard_pfx_len: number;
                          sibling_addr: string;
                          this_addr: string;
                      };
                      storage_ph?: {
                          fees_collected?: string;
                          fees_due?: string;
                          status_change: string;
                      };
                      type: string;
                  };
                  emulated?: boolean;
                  end_status: "active"
                  | "frozen"
                  | "uninit"
                  | "nonexist";
                  hash: string;
                  in_msg:
                      | null
                      | {
                          bounce: null
                          | boolean;
                          bounced: null | boolean;
                          created_at: null | string;
                          created_lt: null | string;
                          destination: null | string;
                          fwd_fee: null | string;
                          hash: string;
                          ihr_disabled: null | boolean;
                          ihr_fee: null | string;
                          import_fee: null | string;
                          init_state: null | { body: string; hash: string };
                          message_content:
                              | null
                              | {
                                  body: string;
                                  decoded: | null
                                  | {
                                      "@type"?: (...)
                                      | (...);
                                      comment?: (...) | (...);
                                      text?: (...) | (...);
                                      type?: (...) | (...);
                                  }
                                  | {
                                      "@type"?: (...)
                                      | (...);
                                      hex_comment?: (...) | (...);
                                      type?: (...) | (...);
                                  }
                                  | { [key: string]: unknown };
                                  hash: string;
                              };
                          opcode: null
                          | string;
                          source: null | string;
                          value: null | string;
                      };
                  lt: string;
                  mc_block_seqno: null
                  | number;
                  now: number;
                  orig_status: "active" | "frozen" | "uninit" | "nonexist";
                  out_msgs: {
                      bounce: null | boolean;
                      bounced: null | boolean;
                      created_at: null | string;
                      created_lt: null | string;
                      destination: null | string;
                      fwd_fee: null | string;
                      hash: string;
                      ihr_disabled: null | boolean;
                      ihr_fee: null | string;
                      import_fee: null | string;
                      init_state: null | { body: string; hash: string };
                      message_content:
                          | null
                          | {
                              body: string;
                              decoded: | null
                              | {
                                  "@type"?: (...)
                                  | (...);
                                  comment?: (...) | (...);
                                  text?: (...) | (...);
                                  type?: (...) | (...);
                              }
                              | {
                                  "@type"?: (...)
                                  | (...);
                                  hex_comment?: (...) | (...);
                                  type?: (...) | (...);
                              }
                              | { [key: string]: unknown };
                              hash: string;
                          };
                      opcode: null
                      | string;
                      source: null | string;
                      value: null | string;
                  }[];
                  prev_trans_hash: string;
                  prev_trans_lt: string;
                  total_fees: string;
                  total_fees_extra_currencies?: Record<string, string>;
                  trace_external_hash?: null | string;
                  trace_id: null | string;
              }[];
          },
      >

    • Returns blocks by specified filters.

      Parameters

      • Optionaloptional: {
            end_lt?: string;
            end_utime?: string;
            limit?: number;
            offset?: number;
            seqno?: number;
            shard?: string;
            sort?: "asc" | "desc";
            start_lt?: string;
            start_utime?: string;
            workchain?: number;
        }

      Returns Promise<
          {
              blocks: {
                  after_merge: boolean;
                  after_split: boolean;
                  before_split: boolean;
                  created_by: string;
                  end_lt: string;
                  file_hash: string;
                  flags: number;
                  gen_catchain_seqno: number;
                  gen_utime: string;
                  global_id: number;
                  key_block: boolean;
                  master_ref_seqno: null
                  | number;
                  masterchain_block_ref?:
                      | null
                      | { seqno: number; shard: string; workchain: number };
                  min_ref_mc_seqno: number;
                  prev_key_block_seqno: number;
                  rand_seed: string;
                  root_hash: string;
                  seqno: number;
                  shard: string;
                  start_lt: string;
                  tx_count: null | number;
                  validator_list_hash_short: number;
                  version: number;
                  vert_seqno: number;
                  vert_seqno_incr: boolean;
                  want_split: boolean;
                  workchain: number;
              }[];
          },
      >

    • Get DNS records by domain or resolver address.

      Parameters

      • wallet_address: string

        Wallet address (required)

      • Optionaloptional: { domain?: string; limit?: number; offset?: number; resolver_address?: string }

        Filter parameters for DNS records

      Returns Promise<
          {
              records: {
                  domain: string;
                  last_update_time: number;
                  record_type: string;
                  resolver_address: string;
                  value: string;
              }[];
          },
      >

    • Get Jetton burns by specified filters.

      Parameters

      • Optionaloptional: {
            address?: string;
            end_lt?: string;
            end_utime?: string;
            jetton_master?: string;
            jetton_wallet?: string;
            limit?: number;
            offset?: number;
            sort?: "asc" | "desc";
            start_lt?: string;
            start_utime?: string;
        }

      Returns Promise<
          {
              jetton_burns: {
                  custom_payload: null
                  | string;
                  jetton_master: string;
                  owner: string;
                  query_id: string;
                  response_destination: null | string;
                  transaction_hash: string;
                  transaction_lt: string;
                  transaction_now: number;
              }[];
          },
      >

    • Get Jetton masters by specified filters.

      Parameters

      • Optionaloptional: { address?: string; admin_address?: string; limit?: number; offset?: number }

      Returns Promise<
          {
              jetton_masters: {
                  address: string;
                  admin_address: null
                  | string;
                  code_hash: string;
                  data_hash: string;
                  jetton_content: any;
                  jetton_wallet_code_hash: string;
                  last_transaction_lt: string;
                  mintable: boolean;
                  total_supply: string;
              }[];
          },
      >

    • Get Jetton transfers by specified filters.

      Parameters

      • Optionaloptional: {
            address?: string;
            direction?: "out" | "in" | "both";
            end_lt?: string;
            end_utime?: string;
            jetton_master?: string;
            jetton_wallet?: string;
            limit?: number;
            offset?: number;
            sort?: "asc" | "desc";
            start_lt?: string;
            start_utime?: string;
        }

      Returns Promise<
          {
              jetton_transfers: {
                  amount: string;
                  custom_payload: null
                  | string;
                  destination: string;
                  forward_payload: null | string;
                  forward_ton_amount: null | string;
                  jetton_master: string;
                  query_id: string;
                  response_destination: null | string;
                  source: string;
                  source_wallet: string;
                  transaction_hash: string;
                  transaction_lt: string;
                  transaction_now: number;
              }[];
          },
      >

    • Get Jetton wallets by specified filters.

      Parameters

      • Optionaloptional: {
            address?: string;
            jetton_address?: string;
            limit?: number;
            offset?: number;
            owner_address?: string;
        }

      Returns Promise<
          {
              jetton_wallets: {
                  address: string;
                  balance: string;
                  code_hash: string;
                  data_hash: string;
                  jetton: string;
                  last_transaction_lt: string;
                  owner: string;
              }[];
          },
      >

    • Returns all workchain blocks, that appeared after previous masterchain block.

      Parameters

      • seqno: number
      • Optionaloptional: { include_mc_block?: boolean }

      Returns Promise<
          {
              blocks: {
                  after_merge: boolean;
                  after_split: boolean;
                  before_split: boolean;
                  created_by: string;
                  end_lt: string;
                  file_hash: string;
                  flags: number;
                  gen_catchain_seqno: number;
                  gen_utime: string;
                  global_id: number;
                  key_block: boolean;
                  master_ref_seqno: null
                  | number;
                  masterchain_block_ref?:
                      | null
                      | { seqno: number; shard: string; workchain: number };
                  min_ref_mc_seqno: number;
                  prev_key_block_seqno: number;
                  rand_seed: string;
                  root_hash: string;
                  seqno: number;
                  shard: string;
                  start_lt: string;
                  tx_count: null | number;
                  validator_list_hash_short: number;
                  version: number;
                  vert_seqno: number;
                  vert_seqno_incr: boolean;
                  want_split: boolean;
                  workchain: number;
              }[];
          },
      >

    • Get masterchain block shard state information.

      Parameters

      • seqno: number

        Masterchain block sequence number

      Returns Promise<
          {
              blocks: {
                  after_merge: boolean;
                  after_split: boolean;
                  before_split: boolean;
                  created_by: string;
                  end_lt: string;
                  file_hash: string;
                  flags: number;
                  gen_catchain_seqno: number;
                  gen_utime: string;
                  global_id: number;
                  key_block: boolean;
                  master_ref_seqno: null
                  | number;
                  masterchain_block_ref?:
                      | null
                      | { seqno: number; shard: string; workchain: number };
                  min_ref_mc_seqno: number;
                  prev_key_block_seqno: number;
                  rand_seed: string;
                  root_hash: string;
                  seqno: number;
                  shard: string;
                  start_lt: string;
                  tx_count: null | number;
                  validator_list_hash_short: number;
                  version: number;
                  vert_seqno: number;
                  vert_seqno_incr: boolean;
                  want_split: boolean;
                  workchain: number;
              }[];
          },
      >

    • Get masterchain info.

      Returns Promise<
          {
              first: {
                  after_merge: boolean;
                  after_split: boolean;
                  before_split: boolean;
                  created_by: string;
                  end_lt: string;
                  file_hash: string;
                  flags: number;
                  gen_catchain_seqno: number;
                  gen_utime: string;
                  global_id: number;
                  key_block: boolean;
                  master_ref_seqno: null
                  | number;
                  masterchain_block_ref?:
                      | null
                      | { seqno: number; shard: string; workchain: number };
                  min_ref_mc_seqno: number;
                  prev_key_block_seqno: number;
                  rand_seed: string;
                  root_hash: string;
                  seqno: number;
                  shard: string;
                  start_lt: string;
                  tx_count: null | number;
                  validator_list_hash_short: number;
                  version: number;
                  vert_seqno: number;
                  vert_seqno_incr: boolean;
                  want_split: boolean;
                  workchain: number;
              };
              last: {
                  after_merge: boolean;
                  after_split: boolean;
                  before_split: boolean;
                  created_by: string;
                  end_lt: string;
                  file_hash: string;
                  flags: number;
                  gen_catchain_seqno: number;
                  gen_utime: string;
                  global_id: number;
                  key_block: boolean;
                  master_ref_seqno: null
                  | number;
                  masterchain_block_ref?:
                      | null
                      | { seqno: number; shard: string; workchain: number };
                  min_ref_mc_seqno: number;
                  prev_key_block_seqno: number;
                  rand_seed: string;
                  root_hash: string;
                  seqno: number;
                  shard: string;
                  start_lt: string;
                  tx_count: null | number;
                  validator_list_hash_short: number;
                  version: number;
                  vert_seqno: number;
                  vert_seqno_incr: boolean;
                  want_split: boolean;
                  workchain: number;
              };
          },
      >

    • Get messages by specified filters.

      Parameters

      • Optionaloptional: {
            body_hash?: string;
            destination?: string;
            hash?: string;
            limit?: number;
            offset?: number;
            source?: string;
        }

      Returns Promise<
          {
              messages: {
                  bounce: null
                  | boolean;
                  bounced: null | boolean;
                  created_at: null | string;
                  created_lt: null | string;
                  destination: null | string;
                  fwd_fee: null | string;
                  hash: string;
                  ihr_disabled: null | boolean;
                  ihr_fee: null | string;
                  import_fee: null | string;
                  init_state: null | { body: string; hash: string };
                  message_content:
                      | null
                      | {
                          body: string;
                          decoded: | null
                          | {
                              "@type"?: "text_comment";
                              comment?: string;
                              text?: string;
                              type?: "text_comment";
                          }
                          | {
                              "@type"?: "binary_comment";
                              hex_comment?: string;
                              type?: "binary_comment";
                          }
                          | { [key: string]: unknown };
                          hash: string;
                      };
                  opcode: null
                  | string;
                  source: null | string;
                  value: null | string;
              }[];
          },
      >

    • Get metadata for multiple addresses.

      Parameters

      • addresses: string[]

        List of addresses to get metadata for (max 1024)

      Returns Promise<Record<string, any>>

    • Get multisig orders by specified filters. At least one of address or multisig_address is required.

      Parameters

      • required: { address?: string; multisig_address?: string }

        Required parameters (address or multisig_address)

      • Optionaloptional: { limit?: number; offset?: number; order_id?: string }

        Optional filter parameters

      Returns Promise<
          {
              address_book?: Record<string, { user_friendly: string }>;
              orders: {
                  approvals_mask: string;
                  approvals_num: number;
                  expiration_date: number;
                  multisig_address: string;
                  order: { actions: any[]; type: string };
                  order_id: string;
                  order_seqno: number;
                  sent_for_execution: boolean;
                  signers: string[];
                  threshold: number;
              }[];
          },
      >

    • Get multisig wallets by specified filters. At least one of address or wallet_address is required.

      Parameters

      • required: { address?: string; wallet_address?: string }

        Required parameters (address or wallet_address)

      • Optionaloptional: { limit?: number; offset?: number; owner_address?: string }

        Optional filter parameters

      Returns Promise<
          {
              address_book?: Record<string, { user_friendly: string }>;
              wallets: {
                  address: string;
                  balance: string;
                  last_transaction_hash: string;
                  last_transaction_lt: string;
                  orders_count: number;
                  proposers: string[];
                  signers: string[];
                  status: string;
                  threshold: number;
              }[];
          },
      >

    • Get NFT collections.

      Parameters

      • Optionaloptional: {
            collection_address?: string;
            limit?: number;
            offset?: number;
            owner_address?: string;
        }

      Returns Promise<
          {
              nft_collections: {
                  address: string;
                  code_hash: string;
                  collection_content: any;
                  data_hash: string;
                  last_transaction_lt: string;
                  next_item_index: string;
                  owner_address: null
                  | string;
              }[];
          },
      >

    • Get NFT items.

      Parameters

      • Optionaloptional: {
            address?: string;
            collection_address?: string;
            index?: string;
            limit?: number;
            offset?: number;
            owner_address?: string;
        }

      Returns Promise<
          {
              nft_items: {
                  address: string;
                  code_hash: string;
                  collection: | null
                  | {
                      address: string;
                      code_hash: string;
                      collection_content: any;
                      data_hash: string;
                      last_transaction_lt: string;
                      next_item_index: string;
                      owner_address: null
                      | string;
                  };
                  collection_address: null
                  | string;
                  content: any;
                  data_hash: string;
                  index: string;
                  init: boolean;
                  last_transaction_lt: string;
                  owner_address: null | string;
              }[];
          },
      >

    • Get NFT transfers by specified filters.

      Parameters

      • Optionaloptional: {
            address?: string;
            collection_address?: string;
            direction?: "out" | "in" | "both";
            end_lt?: string;
            end_utime?: string;
            item_address?: string;
            limit?: number;
            offset?: number;
            sort?: "asc" | "desc";
            start_lt?: string;
            start_utime?: string;
        }

      Returns Promise<
          {
              nft_transfers: {
                  custom_payload: null
                  | string;
                  forward_amount: string;
                  forward_payload: null | string;
                  new_owner: string;
                  nft_address: string;
                  old_owner: string;
                  query_id: string;
                  response_destination: null | string;
                  transaction_hash: string;
                  transaction_lt: string;
                  transaction_now: number;
              }[];
          },
      >

    • Get pending actions by specified filter.

      Parameters

      • Optionaloptional: {
            account?: string;
            action_id?: string[];
            action_type?: string[];
            end_lt?: number;
            end_utime?: number;
            exclude_action_type?: string[];
            include_accounts?: boolean;
            limit?: number;
            mc_seqno?: number;
            msg_hash?: string[];
            offset?: number;
            sort?: "asc" | "desc";
            start_lt?: number;
            start_utime?: number;
            supported_action_types?: string[];
            trace_id?: string[];
            tx_hash?: string[];
        }

        Filter parameters for pending actions

      Returns Promise<
          {
              actions: {
                  action_id: string;
                  details: {
                      amount?: string;
                      asset?: string;
                      comment?: null
                      | string;
                      custom_payload?: null | string;
                      destination?: string;
                      encrypted?: boolean;
                      forward_amount?: string;
                      forward_payload?: null | string;
                      is_encrypted_comment?: boolean;
                      query_id?: string;
                      receiver?: string;
                      receiver_jetton_wallet?: string;
                      response_destination?: string;
                      sender?: string;
                      sender_jetton_wallet?: string;
                      source?: string;
                      value?: string;
                      value_extra_currencies?: { [key: string]: unknown };
                  };
                  end_lt: string;
                  end_utime: number;
                  pending: boolean;
                  start_lt: string;
                  start_utime: number;
                  success: boolean;
                  trace_end_lt: string;
                  trace_end_utime: number;
                  trace_external_hash: string;
                  trace_external_hash_norm?: string;
                  trace_id: string;
                  trace_mc_seqno_end: number;
                  transactions: string[];
                  type: string;
              }[];
              address_book?: Record<string, { user_friendly: string }>;
              metadata?: Record<
                  string,
                  {
                      is_indexed: boolean;
                      token_info?: {
                          description?: string;
                          extra?: { [key: string]: unknown };
                          image?: string;
                          name?: string;
                          symbol?: string;
                          type: string;
                          valid: boolean;
                      }[];
                  },
              >;
          },
      >

    • Get pending traces by specified filter.

      Parameters

      • Optionaloptional: {
            account?: string;
            end_lt?: number;
            end_utime?: number;
            limit?: number;
            mc_seqno?: number;
            msg_hash?: string[];
            offset?: number;
            sort?: "asc" | "desc";
            start_lt?: number;
            start_utime?: number;
            trace_id?: string[];
            tx_hash?: string[];
        }

        Filter parameters for pending traces

      Returns Promise<
          {
              address_book?: Record<string, { user_friendly: string }>;
              metadata?: Record<
                  string,
                  {
                      is_indexed: boolean;
                      token_info?: {
                          description?: string;
                          extra?: { [key: string]: unknown };
                          image?: string;
                          name?: string;
                          symbol?: string;
                          type: string;
                          valid: boolean;
                      }[];
                  },
              >;
              traces: | null
              | {
                  end_lt: string;
                  end_utime: number;
                  external_hash: null
                  | string;
                  is_incomplete: boolean;
                  mc_seqno_end: string;
                  mc_seqno_start: string;
                  pending: boolean;
                  start_lt: string;
                  start_utime: number;
                  trace: { children: any[]; tx_hash: string };
                  trace_id: string;
                  trace_info: {
                      classification_state: string;
                      messages: number;
                      pending_messages: number;
                      trace_state: string;
                      transactions: number;
                  };
                  transactions: Record<string, any>;
                  transactions_order: string[];
              }[];
          },
      >

    • Get pending transactions by specified filters. At least one account address is required.

      Parameters

      • accounts: string | string[]

        Account addresses (at least one required)

      • Optionaloptional: {
            end_lt?: string;
            end_utime?: string;
            exclude_account?: string | string[];
            hash?: string;
            limit?: number;
            lt?: string;
            offset?: number;
            seqno?: number;
            shard?: string;
            sort?: "asc" | "desc";
            start_lt?: string;
            start_utime?: string;
            workchain?: number;
        }

        Filter parameters for pending transactions

      Returns Promise<
          {
              address_book?: Record<string, { user_friendly: string }>;
              transactions: {
                  account: string;
                  account_state_after:
                      | null
                      | {
                          account_status: null
                          | "active"
                          | "frozen"
                          | "uninit"
                          | "nonexist";
                          balance: null | string;
                          code_hash: null | string;
                          data_hash: null | string;
                          extra_currencies?: null | Record<string, string>;
                          frozen_hash: null | string;
                          hash: string;
                      };
                  account_state_before: | null
                  | {
                      account_status: null
                      | "active"
                      | "frozen"
                      | "uninit"
                      | "nonexist";
                      balance: null | string;
                      code_hash: null | string;
                      data_hash: null | string;
                      extra_currencies?: null | Record<string, string>;
                      frozen_hash: null | string;
                      hash: string;
                  };
                  block_ref: null
                  | { seqno: number; shard: string; workchain: number };
                  description: {
                      aborted?: boolean;
                      action?: {
                          action_list_hash: string;
                          msgs_created: number;
                          no_funds: boolean;
                          result_arg?: number;
                          result_code: number;
                          skipped_actions: number;
                          spec_actions: number;
                          status_change: string;
                          success: boolean;
                          tot_actions: number;
                          tot_msg_size_bits?: number;
                          tot_msg_size_cells?: number;
                          total_action_fees?: string;
                          total_fwd_fees?: string;
                          valid: boolean;
                      };
                      bounce?: {
                          fwd_fees?: string;
                          msg_fees?: string;
                          msg_size_bits?: number;
                          msg_size_cells?: number;
                          req_fwd_fees?: string;
                          type: string;
                      };
                      compute_ph?: {
                          account_activated?: boolean;
                          exit_arg?: number;
                          exit_code?: number;
                          gas_credit?: string;
                          gas_fees?: string;
                          gas_limit?: string;
                          gas_used?: string;
                          mode?: number;
                          msg_state_used?: boolean;
                          success?: boolean;
                          type?: string;
                          vm_final_state_hash?: string;
                          vm_init_state_hash?: string;
                          vm_steps?: number;
                      };
                      credit_first?: boolean;
                      credit_ph?: { credit?: string; fees_collected?: string };
                      destroyed?: boolean;
                      installed?: boolean;
                      is_tock?: boolean;
                      split_info?: {
                          acc_split_depth: number;
                          cur_shard_pfx_len: number;
                          sibling_addr: string;
                          this_addr: string;
                      };
                      storage_ph?: {
                          fees_collected?: string;
                          fees_due?: string;
                          status_change: string;
                      };
                      type: string;
                  };
                  emulated?: boolean;
                  end_status: "active"
                  | "frozen"
                  | "uninit"
                  | "nonexist";
                  hash: string;
                  in_msg:
                      | null
                      | {
                          bounce: null
                          | boolean;
                          bounced: null | boolean;
                          created_at: null | string;
                          created_lt: null | string;
                          destination: null | string;
                          fwd_fee: null | string;
                          hash: string;
                          ihr_disabled: null | boolean;
                          ihr_fee: null | string;
                          import_fee: null | string;
                          init_state: null | { body: string; hash: string };
                          message_content:
                              | null
                              | {
                                  body: string;
                                  decoded: | null
                                  | {
                                      "@type"?: (...)
                                      | (...);
                                      comment?: (...) | (...);
                                      text?: (...) | (...);
                                      type?: (...) | (...);
                                  }
                                  | {
                                      "@type"?: (...)
                                      | (...);
                                      hex_comment?: (...) | (...);
                                      type?: (...) | (...);
                                  }
                                  | { [key: string]: unknown };
                                  hash: string;
                              };
                          opcode: null
                          | string;
                          source: null | string;
                          value: null | string;
                      };
                  lt: string;
                  mc_block_seqno: null
                  | number;
                  now: number;
                  orig_status: "active" | "frozen" | "uninit" | "nonexist";
                  out_msgs: {
                      bounce: null | boolean;
                      bounced: null | boolean;
                      created_at: null | string;
                      created_lt: null | string;
                      destination: null | string;
                      fwd_fee: null | string;
                      hash: string;
                      ihr_disabled: null | boolean;
                      ihr_fee: null | string;
                      import_fee: null | string;
                      init_state: null | { body: string; hash: string };
                      message_content:
                          | null
                          | {
                              body: string;
                              decoded: | null
                              | {
                                  "@type"?: (...)
                                  | (...);
                                  comment?: (...) | (...);
                                  text?: (...) | (...);
                                  type?: (...) | (...);
                              }
                              | {
                                  "@type"?: (...)
                                  | (...);
                                  hex_comment?: (...) | (...);
                                  type?: (...) | (...);
                              }
                              | { [key: string]: unknown };
                              hash: string;
                          };
                      opcode: null
                      | string;
                      source: null | string;
                      value: null | string;
                  }[];
                  pending: boolean;
                  prev_trans_hash: string;
                  prev_trans_lt: string;
                  total_fees: string;
                  total_fees_extra_currencies?: Record<string, string>;
                  trace_external_hash?: null | string;
                  trace_id: null | string;
              }[];
          },
      >

    • Get traces by specified filter.

      Parameters

      • Optionaloptional: {
            account?: string;
            end_lt?: number;
            end_utime?: number;
            limit?: number;
            mc_seqno?: number;
            msg_hash?: string[];
            offset?: number;
            sort?: "asc" | "desc";
            start_lt?: number;
            start_utime?: number;
            trace_id?: string[];
            tx_hash?: string[];
        }

        Filter parameters for traces

      Returns Promise<
          {
              address_book?: Record<string, { user_friendly: string }>;
              metadata?: { [key: string]: unknown };
              traces: {
                  end_lt: string;
                  end_utime: number;
                  external_hash: null | string;
                  is_incomplete: boolean;
                  mc_seqno_end: string;
                  mc_seqno_start: string;
                  start_lt: string;
                  start_utime: number;
                  trace: { children: any[]; tx_hash: string };
                  trace_id: string;
                  trace_info: {
                      classification_state: string;
                      messages: number;
                      pending_messages: number;
                      trace_state: string;
                      transactions: number;
                  };
                  transactions: Record<string, any>;
                  transactions_order: string[];
              }[];
          },
      >

    • Get transactions by specified filters.

      Parameters

      • Optionaloptional: {
            account?: string | string[];
            end_lt?: string;
            end_utime?: string;
            exclude_account?: string | string[];
            hash?: string;
            limit?: number;
            lt?: string;
            offset?: number;
            seqno?: number;
            shard?: string;
            sort?: "asc" | "desc";
            start_lt?: string;
            start_utime?: string;
            workchain?: number;
        }

      Returns Promise<
          {
              address_book: Record<string, { user_friendly: string }>;
              transactions: {
                  account: string;
                  account_state_after:
                      | null
                      | {
                          account_status: null
                          | "active"
                          | "frozen"
                          | "uninit"
                          | "nonexist";
                          balance: null | string;
                          code_hash: null | string;
                          data_hash: null | string;
                          extra_currencies?: null | Record<string, string>;
                          frozen_hash: null | string;
                          hash: string;
                      };
                  account_state_before: | null
                  | {
                      account_status: null
                      | "active"
                      | "frozen"
                      | "uninit"
                      | "nonexist";
                      balance: null | string;
                      code_hash: null | string;
                      data_hash: null | string;
                      extra_currencies?: null | Record<string, string>;
                      frozen_hash: null | string;
                      hash: string;
                  };
                  block_ref: null
                  | { seqno: number; shard: string; workchain: number };
                  description: {
                      aborted?: boolean;
                      action?: {
                          action_list_hash: string;
                          msgs_created: number;
                          no_funds: boolean;
                          result_arg?: number;
                          result_code: number;
                          skipped_actions: number;
                          spec_actions: number;
                          status_change: string;
                          success: boolean;
                          tot_actions: number;
                          tot_msg_size_bits?: number;
                          tot_msg_size_cells?: number;
                          total_action_fees?: string;
                          total_fwd_fees?: string;
                          valid: boolean;
                      };
                      bounce?: {
                          fwd_fees?: string;
                          msg_fees?: string;
                          msg_size_bits?: number;
                          msg_size_cells?: number;
                          req_fwd_fees?: string;
                          type: string;
                      };
                      compute_ph?: {
                          account_activated?: boolean;
                          exit_arg?: number;
                          exit_code?: number;
                          gas_credit?: string;
                          gas_fees?: string;
                          gas_limit?: string;
                          gas_used?: string;
                          mode?: number;
                          msg_state_used?: boolean;
                          success?: boolean;
                          type?: string;
                          vm_final_state_hash?: string;
                          vm_init_state_hash?: string;
                          vm_steps?: number;
                      };
                      credit_first?: boolean;
                      credit_ph?: { credit?: string; fees_collected?: string };
                      destroyed?: boolean;
                      installed?: boolean;
                      is_tock?: boolean;
                      split_info?: {
                          acc_split_depth: number;
                          cur_shard_pfx_len: number;
                          sibling_addr: string;
                          this_addr: string;
                      };
                      storage_ph?: {
                          fees_collected?: string;
                          fees_due?: string;
                          status_change: string;
                      };
                      type: string;
                  };
                  emulated?: boolean;
                  end_status: "active"
                  | "frozen"
                  | "uninit"
                  | "nonexist";
                  hash: string;
                  in_msg:
                      | null
                      | {
                          bounce: null
                          | boolean;
                          bounced: null | boolean;
                          created_at: null | string;
                          created_lt: null | string;
                          destination: null | string;
                          fwd_fee: null | string;
                          hash: string;
                          ihr_disabled: null | boolean;
                          ihr_fee: null | string;
                          import_fee: null | string;
                          init_state: null | { body: string; hash: string };
                          message_content:
                              | null
                              | {
                                  body: string;
                                  decoded: | null
                                  | {
                                      "@type"?: (...)
                                      | (...);
                                      comment?: (...) | (...);
                                      text?: (...) | (...);
                                      type?: (...) | (...);
                                  }
                                  | {
                                      "@type"?: (...)
                                      | (...);
                                      hex_comment?: (...) | (...);
                                      type?: (...) | (...);
                                  }
                                  | { [key: string]: unknown };
                                  hash: string;
                              };
                          opcode: null
                          | string;
                          source: null | string;
                          value: null | string;
                      };
                  lt: string;
                  mc_block_seqno: null
                  | number;
                  now: number;
                  orig_status: "active" | "frozen" | "uninit" | "nonexist";
                  out_msgs: {
                      bounce: null | boolean;
                      bounced: null | boolean;
                      created_at: null | string;
                      created_lt: null | string;
                      destination: null | string;
                      fwd_fee: null | string;
                      hash: string;
                      ihr_disabled: null | boolean;
                      ihr_fee: null | string;
                      import_fee: null | string;
                      init_state: null | { body: string; hash: string };
                      message_content:
                          | null
                          | {
                              body: string;
                              decoded: | null
                              | {
                                  "@type"?: (...)
                                  | (...);
                                  comment?: (...) | (...);
                                  text?: (...) | (...);
                                  type?: (...) | (...);
                              }
                              | {
                                  "@type"?: (...)
                                  | (...);
                                  hex_comment?: (...) | (...);
                                  type?: (...) | (...);
                              }
                              | { [key: string]: unknown };
                              hash: string;
                          };
                      opcode: null
                      | string;
                      source: null | string;
                      value: null | string;
                  }[];
                  prev_trans_hash: string;
                  prev_trans_lt: string;
                  total_fees: string;
                  total_fees_extra_currencies?: Record<string, string>;
                  trace_external_hash?: null | string;
                  trace_id: null | string;
              }[];
          },
      >

    • Returns transactions from masterchain block and from all shards.

      Parameters

      • seqno: number
      • Optionaloptional: { limit?: number; offset?: number; sort?: "asc" | "desc" }

      Returns Promise<
          {
              address_book: Record<string, { user_friendly: string }>;
              transactions: {
                  account: string;
                  account_state_after:
                      | null
                      | {
                          account_status: null
                          | "active"
                          | "frozen"
                          | "uninit"
                          | "nonexist";
                          balance: null | string;
                          code_hash: null | string;
                          data_hash: null | string;
                          extra_currencies?: null | Record<string, string>;
                          frozen_hash: null | string;
                          hash: string;
                      };
                  account_state_before: | null
                  | {
                      account_status: null
                      | "active"
                      | "frozen"
                      | "uninit"
                      | "nonexist";
                      balance: null | string;
                      code_hash: null | string;
                      data_hash: null | string;
                      extra_currencies?: null | Record<string, string>;
                      frozen_hash: null | string;
                      hash: string;
                  };
                  block_ref: null
                  | { seqno: number; shard: string; workchain: number };
                  description: {
                      aborted?: boolean;
                      action?: {
                          action_list_hash: string;
                          msgs_created: number;
                          no_funds: boolean;
                          result_arg?: number;
                          result_code: number;
                          skipped_actions: number;
                          spec_actions: number;
                          status_change: string;
                          success: boolean;
                          tot_actions: number;
                          tot_msg_size_bits?: number;
                          tot_msg_size_cells?: number;
                          total_action_fees?: string;
                          total_fwd_fees?: string;
                          valid: boolean;
                      };
                      bounce?: {
                          fwd_fees?: string;
                          msg_fees?: string;
                          msg_size_bits?: number;
                          msg_size_cells?: number;
                          req_fwd_fees?: string;
                          type: string;
                      };
                      compute_ph?: {
                          account_activated?: boolean;
                          exit_arg?: number;
                          exit_code?: number;
                          gas_credit?: string;
                          gas_fees?: string;
                          gas_limit?: string;
                          gas_used?: string;
                          mode?: number;
                          msg_state_used?: boolean;
                          success?: boolean;
                          type?: string;
                          vm_final_state_hash?: string;
                          vm_init_state_hash?: string;
                          vm_steps?: number;
                      };
                      credit_first?: boolean;
                      credit_ph?: { credit?: string; fees_collected?: string };
                      destroyed?: boolean;
                      installed?: boolean;
                      is_tock?: boolean;
                      split_info?: {
                          acc_split_depth: number;
                          cur_shard_pfx_len: number;
                          sibling_addr: string;
                          this_addr: string;
                      };
                      storage_ph?: {
                          fees_collected?: string;
                          fees_due?: string;
                          status_change: string;
                      };
                      type: string;
                  };
                  emulated?: boolean;
                  end_status: "active"
                  | "frozen"
                  | "uninit"
                  | "nonexist";
                  hash: string;
                  in_msg:
                      | null
                      | {
                          bounce: null
                          | boolean;
                          bounced: null | boolean;
                          created_at: null | string;
                          created_lt: null | string;
                          destination: null | string;
                          fwd_fee: null | string;
                          hash: string;
                          ihr_disabled: null | boolean;
                          ihr_fee: null | string;
                          import_fee: null | string;
                          init_state: null | { body: string; hash: string };
                          message_content:
                              | null
                              | {
                                  body: string;
                                  decoded: | null
                                  | {
                                      "@type"?: (...)
                                      | (...);
                                      comment?: (...) | (...);
                                      text?: (...) | (...);
                                      type?: (...) | (...);
                                  }
                                  | {
                                      "@type"?: (...)
                                      | (...);
                                      hex_comment?: (...) | (...);
                                      type?: (...) | (...);
                                  }
                                  | { [key: string]: unknown };
                                  hash: string;
                              };
                          opcode: null
                          | string;
                          source: null | string;
                          value: null | string;
                      };
                  lt: string;
                  mc_block_seqno: null
                  | number;
                  now: number;
                  orig_status: "active" | "frozen" | "uninit" | "nonexist";
                  out_msgs: {
                      bounce: null | boolean;
                      bounced: null | boolean;
                      created_at: null | string;
                      created_lt: null | string;
                      destination: null | string;
                      fwd_fee: null | string;
                      hash: string;
                      ihr_disabled: null | boolean;
                      ihr_fee: null | string;
                      import_fee: null | string;
                      init_state: null | { body: string; hash: string };
                      message_content:
                          | null
                          | {
                              body: string;
                              decoded: | null
                              | {
                                  "@type"?: (...)
                                  | (...);
                                  comment?: (...) | (...);
                                  text?: (...) | (...);
                                  type?: (...) | (...);
                              }
                              | {
                                  "@type"?: (...)
                                  | (...);
                                  hex_comment?: (...) | (...);
                                  type?: (...) | (...);
                              }
                              | { [key: string]: unknown };
                              hash: string;
                          };
                      opcode: null
                      | string;
                      source: null | string;
                      value: null | string;
                  }[];
                  prev_trans_hash: string;
                  prev_trans_lt: string;
                  total_fees: string;
                  total_fees_extra_currencies?: Record<string, string>;
                  trace_external_hash?: null | string;
                  trace_id: null | string;
              }[];
          },
      >

    • Get transactions whose inbound/outbound message has the specified hash. This endpoint returns list of Transaction objects since collisions of message hashes can occur.

      Parameters

      • direction: "out" | "in"
      • msg_hash: string
      • Optionaloptional: { limit?: number; offset?: number }

      Returns Promise<
          {
              address_book: Record<string, { user_friendly: string }>;
              transactions: {
                  account: string;
                  account_state_after:
                      | null
                      | {
                          account_status: null
                          | "active"
                          | "frozen"
                          | "uninit"
                          | "nonexist";
                          balance: null | string;
                          code_hash: null | string;
                          data_hash: null | string;
                          extra_currencies?: null | Record<string, string>;
                          frozen_hash: null | string;
                          hash: string;
                      };
                  account_state_before: | null
                  | {
                      account_status: null
                      | "active"
                      | "frozen"
                      | "uninit"
                      | "nonexist";
                      balance: null | string;
                      code_hash: null | string;
                      data_hash: null | string;
                      extra_currencies?: null | Record<string, string>;
                      frozen_hash: null | string;
                      hash: string;
                  };
                  block_ref: null
                  | { seqno: number; shard: string; workchain: number };
                  description: {
                      aborted?: boolean;
                      action?: {
                          action_list_hash: string;
                          msgs_created: number;
                          no_funds: boolean;
                          result_arg?: number;
                          result_code: number;
                          skipped_actions: number;
                          spec_actions: number;
                          status_change: string;
                          success: boolean;
                          tot_actions: number;
                          tot_msg_size_bits?: number;
                          tot_msg_size_cells?: number;
                          total_action_fees?: string;
                          total_fwd_fees?: string;
                          valid: boolean;
                      };
                      bounce?: {
                          fwd_fees?: string;
                          msg_fees?: string;
                          msg_size_bits?: number;
                          msg_size_cells?: number;
                          req_fwd_fees?: string;
                          type: string;
                      };
                      compute_ph?: {
                          account_activated?: boolean;
                          exit_arg?: number;
                          exit_code?: number;
                          gas_credit?: string;
                          gas_fees?: string;
                          gas_limit?: string;
                          gas_used?: string;
                          mode?: number;
                          msg_state_used?: boolean;
                          success?: boolean;
                          type?: string;
                          vm_final_state_hash?: string;
                          vm_init_state_hash?: string;
                          vm_steps?: number;
                      };
                      credit_first?: boolean;
                      credit_ph?: { credit?: string; fees_collected?: string };
                      destroyed?: boolean;
                      installed?: boolean;
                      is_tock?: boolean;
                      split_info?: {
                          acc_split_depth: number;
                          cur_shard_pfx_len: number;
                          sibling_addr: string;
                          this_addr: string;
                      };
                      storage_ph?: {
                          fees_collected?: string;
                          fees_due?: string;
                          status_change: string;
                      };
                      type: string;
                  };
                  emulated?: boolean;
                  end_status: "active"
                  | "frozen"
                  | "uninit"
                  | "nonexist";
                  hash: string;
                  in_msg:
                      | null
                      | {
                          bounce: null
                          | boolean;
                          bounced: null | boolean;
                          created_at: null | string;
                          created_lt: null | string;
                          destination: null | string;
                          fwd_fee: null | string;
                          hash: string;
                          ihr_disabled: null | boolean;
                          ihr_fee: null | string;
                          import_fee: null | string;
                          init_state: null | { body: string; hash: string };
                          message_content:
                              | null
                              | {
                                  body: string;
                                  decoded: | null
                                  | {
                                      "@type"?: (...)
                                      | (...);
                                      comment?: (...) | (...);
                                      text?: (...) | (...);
                                      type?: (...) | (...);
                                  }
                                  | {
                                      "@type"?: (...)
                                      | (...);
                                      hex_comment?: (...) | (...);
                                      type?: (...) | (...);
                                  }
                                  | { [key: string]: unknown };
                                  hash: string;
                              };
                          opcode: null
                          | string;
                          source: null | string;
                          value: null | string;
                      };
                  lt: string;
                  mc_block_seqno: null
                  | number;
                  now: number;
                  orig_status: "active" | "frozen" | "uninit" | "nonexist";
                  out_msgs: {
                      bounce: null | boolean;
                      bounced: null | boolean;
                      created_at: null | string;
                      created_lt: null | string;
                      destination: null | string;
                      fwd_fee: null | string;
                      hash: string;
                      ihr_disabled: null | boolean;
                      ihr_fee: null | string;
                      import_fee: null | string;
                      init_state: null | { body: string; hash: string };
                      message_content:
                          | null
                          | {
                              body: string;
                              decoded: | null
                              | {
                                  "@type"?: (...)
                                  | (...);
                                  comment?: (...) | (...);
                                  text?: (...) | (...);
                                  type?: (...) | (...);
                              }
                              | {
                                  "@type"?: (...)
                                  | (...);
                                  hex_comment?: (...) | (...);
                                  type?: (...) | (...);
                              }
                              | { [key: string]: unknown };
                              hash: string;
                          };
                      opcode: null
                      | string;
                      source: null | string;
                      value: null | string;
                  }[];
                  prev_trans_hash: string;
                  prev_trans_lt: string;
                  total_fees: string;
                  total_fees_extra_currencies?: Record<string, string>;
                  trace_external_hash?: null | string;
                  trace_id: null | string;
              }[];
          },
      >

    • Get trace graph for specified transaction.

      Parameters

      • hash: string
      • Optionaloptional: { sort?: "asc" | "desc" }

      Returns Promise<
          {
              address_book?: Record<string, { user_friendly: string }>;
              metadata?: { [key: string]: unknown };
              traces: {
                  end_lt: string;
                  end_utime: number;
                  external_hash: null | string;
                  is_incomplete: boolean;
                  mc_seqno_end: string;
                  mc_seqno_start: string;
                  start_lt: string;
                  start_utime: number;
                  trace: { children: any[]; tx_hash: string };
                  trace_id: string;
                  trace_info: {
                      classification_state: string;
                      messages: number;
                      pending_messages: number;
                      trace_state: string;
                      transactions: number;
                  };
                  transactions: Record<string, any>;
                  transactions_order: string[];
              }[];
          },
      >

    • Get vesting contracts by specified filters. At least one of contract_address or wallet_address is required.

      Parameters

      • required: { contract_address?: string; wallet_address?: string }

        Required parameters (contract_address or wallet_address)

      • Optionaloptional: {
            limit?: number;
            offset?: number;
            owner_address?: string;
            sender_address?: string;
        }

        Optional filter parameters

      Returns Promise<
          {
              address_book?: Record<string, { user_friendly: string }>;
              vesting_contracts: {
                  address: string;
                  cliff_duration: number;
                  owner_address: string;
                  sender_address: string;
                  start_time: number;
                  total_amount: string;
                  total_duration: number;
                  unlock_period: number;
                  whitelist: string[];
              }[];
          },
      >

    • Get wallet smart contract information. The following wallets are supported: v1r1, v1r2, v1r3, v2r1, v2r2, v3r1, v3r2, v4r1, v4r2. In case the account is not a wallet error code 409 is returned.

      Parameters

      • address: string

      Returns Promise<
          {
              balance: string;
              last_transaction_hash: null
              | string;
              last_transaction_lt: null | string;
              seqno: null | number;
              status: string;
              wallet_id: null | number;
              wallet_type: null | string;
          },
      >

    • Get detailed wallet information including balance, seqno, wallet type and other parameters. This method provides comprehensive wallet details for supported wallet types.

      Parameters

      • address: string

        Wallet address

      Returns Promise<
          {
              balance: string;
              last_transaction_hash: string;
              last_transaction_lt: string;
              seqno: null
              | number;
              status: string;
              wallet_id: null | number;
              wallet_type: null | string;
          },
      >

    • Get wallet states for multiple addresses.

      Parameters

      • addresses: string[]

        List of addresses to get wallet states for (max 1024)

      • include_boc: boolean = true

        Include code and data BOCs (default: true)

      Returns Promise<
          {
              address_book?: Record<string, { user_friendly: string }>;
              metadata?: Record<
                  string,
                  {
                      is_indexed: boolean;
                      token_info?: {
                          description?: string;
                          extra?: { [key: string]: unknown };
                          image?: string;
                          name?: string;
                          symbol?: string;
                          type: string;
                          valid: boolean;
                      }[];
                  },
              >;
              wallets: {
                  address: string;
                  balance: string;
                  code_hash: string;
                  extra_currencies?: Record<string, string>;
                  is_signature_allowed?: boolean;
                  is_wallet: boolean;
                  last_transaction_hash: string;
                  last_transaction_lt: string;
                  seqno: null | number;
                  status: string;
                  wallet_id: null | number;
                  wallet_type: null | string;
              }[];
          },
      >

    • Run get method of smart contract. Stack supports only num, cell and slice types.

      Parameters

      • address: string
      • method: string
      • stack: TupleItem[]

      Returns Promise<
          {
              exit_code: number;
              gas_used: number;
              stack: {
                  type: "tuple"
                  | "slice"
                  | "cell"
                  | "num"
                  | "list"
                  | "unsupported_type";
                  value: any;
              }[];
          },
      >

    • Send external message to TON network.

      Parameters

      • boc: string

      Returns Promise<{ message_hash: string }>

    • Get list of accounts sorted descending by balance.

      Parameters

      • Optionaloptional: { limit?: number; offset?: number }

      Returns Promise<{ account: string; balance: string }[]>

    • V2 compatible: Estimate fee.

      Parameters

      • address: string
      • body: string
      • Optionalinit_code: string
      • Optionalinit_data: string
      • Optionalignore_chksig: boolean

      Returns Promise<
          {
              ok: boolean;
              result: {
                  "@extra": string;
                  "@type": string;
                  destination_fees: {
                      "@type": string;
                      fwd_fee: number;
                      gas_fee: number;
                      in_fwd_fee: number;
                      storage_fee: number;
                  }[];
                  source_fees: {
                      "@type": string;
                      fwd_fee: number;
                      gas_fee: number;
                      in_fwd_fee: number;
                      storage_fee: number;
                  };
              };
          },
      >

    • V2 compatible: Get address information.

      Parameters

      • address: string

      Returns Promise<
          {
              ok: boolean;
              result: {
                  "@extra": string;
                  "@type": string;
                  balance: string;
                  block_id: {
                      "@type": string;
                      file_hash: string;
                      root_hash: string;
                      seqno: number;
                      shard: string;
                      workchain: number;
                  };
                  code: string;
                  data: string;
                  extra_currencies: any[];
                  frozen_hash: string;
                  last_transaction_id: { "@type": string; hash: string; lt: string };
                  state: string;
                  sync_utime: number;
              };
          },
      >

    • V2 compatible: Get wallet information.

      Parameters

      • address: string

      Returns Promise<
          {
              ok: boolean;
              result: {
                  account_state: string;
                  balance: string;
                  last_transaction_id: { "@type": string; hash: string; lt: string };
                  seqno: number;
                  wallet: boolean;
                  wallet_id: number;
                  wallet_type: string;
              };
          },
      >

    • V2 compatible: Run get method.

      Parameters

      • address: string
      • method: string
      • stack: any[]

      Returns Promise<
          {
              ok: boolean;
              result: {
                  "@extra": string;
                  "@type": string;
                  block_id: {
                      "@type": string;
                      file_hash: string;
                      root_hash: string;
                      seqno: number;
                      shard: string;
                      workchain: number;
                  };
                  exit_code: number;
                  gas_used: number;
                  last_transaction_id: { "@type": string; hash: string; lt: string };
                  stack: [string, any][];
              };
          },
      >

    • V2 compatible: Send message.

      Parameters

      • boc: string

      Returns Promise<{ message_hash: string; message_hash_norm: string }>