UNPKG

@ledgerhq/coin-elrond

Version:
29 lines 1.55 kB
import { BigNumber } from "bignumber.js"; import { ElrondDelegation, ElrondProvider, ESDTToken, Transaction, ElrondOperation } from "../types"; import type { TokenAccount, SignedOperation } from "@ledgerhq/types-live"; import { INetworkConfig, INonce } from "@elrondnetwork/erdjs/out"; import { MultiversXAccount } from "./dtos/multiversx-account"; /** * Get account balances and nonce */ export declare const getAccount: (addr: string) => Promise<MultiversXAccount>; export declare const getProviders: () => Promise<ElrondProvider[]>; export declare const getNetworkConfig: () => Promise<INetworkConfig>; export declare const getAccountNonce: (addr: string) => Promise<INonce>; /** * Fetch operation list */ export declare const getEGLDOperations: (accountId: string, addr: string, startAt: number, subAccounts: TokenAccount[]) => Promise<ElrondOperation[]>; export declare const getAccountESDTTokens: (address: string) => Promise<ESDTToken[]>; export declare const getAccountDelegations: (address: string) => Promise<ElrondDelegation[]>; export declare const hasESDTTokens: (address: string) => Promise<boolean>; export declare const getESDTOperations: (tokenAccountId: string, address: string, tokenIdentifier: string, startAt: number) => Promise<ElrondOperation[]>; /** * Obtain fees from blockchain */ export declare const getFees: (t: Transaction) => Promise<BigNumber>; /** * Broadcast blob to blockchain */ export declare const broadcastTransaction: (signedOperation: SignedOperation) => Promise<string>; //# sourceMappingURL=sdk.d.ts.map