@okxweb3/coin-stellar
Version:
@ok/coin-stellar is a Stellar SDK for building Web3 wallets and applications. It supports Stellar and PI blockchains, enabling private key management, address generation, transaction signing, trustline creation, and asset transfers
16 lines (15 loc) • 852 B
TypeScript
export class SorobanDataBuilder {
static fromXDR(data: Uint8Array | Buffer | string): xdr.SorobanTransactionData;
constructor(sorobanData: any);
_data: any;
setResourceFee(fee: number | bigint | string): SorobanDataBuilder;
setResources(cpuInstrs: number, readBytes: number, writeBytes: number): SorobanDataBuilder;
appendFootprint(readOnly: xdr.LedgerKey[], readWrite: xdr.LedgerKey[]): SorobanDataBuilder;
setFootprint(readOnly?: xdr.LedgerKey[] | null | undefined, readWrite?: xdr.LedgerKey[] | null | undefined): SorobanDataBuilder;
setReadOnly(readOnly: xdr.LedgerKey[]): SorobanDataBuilder;
setReadWrite(readWrite: xdr.LedgerKey[]): SorobanDataBuilder;
build(): xdr.SorobanTransactionData;
getReadOnly(): xdr.LedgerKey[];
getReadWrite(): xdr.LedgerKey[];
getFootprint(): xdr.LedgerFootprint;
}