(address: string)
| 194 | } |
| 195 | |
| 196 | function 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 /////////////////////////////////////////////// |
| 203 | export function getInputSize(inputScript: Uint8Array): number { |