MCPcopy Index your code
hub / github.com/CashScript/cashscript / getNetworkPrefixForAddress

Function getNetworkPrefixForAddress

packages/cashscript/src/utils.ts:196–200  ·  view source on GitHub ↗
(address: string)

Source from the content-addressed store, hash-verified

194}
195
196function getNetworkPrefixForAddress(address: string): string {
197 const result = decodeCashAddress(address);
198 if (typeof result === 'string') throw new Error(result);
199 return result.prefix;
200}
201
202// ////////// SIZE CALCULATIONS ///////////////////////////////////////////////
203export function getInputSize(inputScript: Uint8Array): number {

Callers 1

validateOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected