@avalabs/avalanchejs
Version:
Avalanche Platform JS Library
48 lines (38 loc) • 795 B
text/typescript
export interface BuildGenesisParams {
genesisData: object;
}
export interface BuildGenesisResponse {
bytes: string;
encoding: string;
}
export interface GetAllBalancesParams {
address: string;
}
export interface GetAllBalancesResponse {
balances: { asset: string; balance: number }[];
}
export interface GetBalanceParams {
address: string;
assetID: string;
}
export interface GetBalanceResponse {
balance: number;
}
export interface GetAddressTxsParams {
address: string;
cursor?: bigint;
assetID: string;
pageSize?: bigint;
}
export interface GetAddressTxsResponse {
txIDs: string[];
cursor: bigint;
}
export interface GetTxFeeResponse {
txFee: string;
createAssetTxFee: string;
}
export interface TxFee {
txFee: bigint;
createAssetTxFee: bigint;
}