@stellar/stellar-sdk
Version:
A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.
8 lines (7 loc) • 343 B
TypeScript
/**
* Obtains the contract spec XDR from a contract's wasm binary.
* @param wasm - The contract's wasm binary as a Buffer.
* @returns The XDR buffer representing the contract spec.
* @throws If the contract spec cannot be obtained from the provided wasm binary.
*/
export declare function specFromWasm(wasm: Buffer): Buffer<ArrayBuffer>;