(address: string)
| 333 | * @returns a locking script corresponding to the passed address |
| 334 | */ |
| 335 | export function addressToLockScript(address: string): Uint8Array { |
| 336 | const result = cashAddressToLockingBytecode(address); |
| 337 | if (typeof result === 'string') throw new Error(result); |
| 338 | |
| 339 | return result.bytecode; |
| 340 | } |
| 341 | |
| 342 | export function getNetworkPrefix(network: string): 'bitcoincash' | 'bchtest' | 'bchreg' { |
| 343 | switch (network) { |
no outgoing calls
no test coverage detected