(address: string)
| 187 | } |
| 188 | |
| 189 | function isTokenAddress(address: string): boolean { |
| 190 | const result = decodeCashAddress(address); |
| 191 | if (typeof result === 'string') throw new Error(result); |
| 192 | const supportsTokens = (result.type === 'p2pkhWithTokens' || result.type === 'p2shWithTokens'); |
| 193 | return supportsTokens; |
| 194 | } |
| 195 | |
| 196 | function getNetworkPrefixForAddress(address: string): string { |
| 197 | const result = decodeCashAddress(address); |