index.d.ts 1.0 KB

12345678910111213141516
  1. /// <reference types="node" />
  2. import { codec, encodeSeed, decodeSeed, encodeAccountID, decodeAccountID, encodeNodePublic, decodeNodePublic, encodeAccountPublic, decodeAccountPublic, isValidClassicAddress } from './xrp-codec';
  3. declare function classicAddressToXAddress(classicAddress: string, tag: number | false, test: boolean): string;
  4. declare function encodeXAddress(accountId: Buffer, tag: number | false, test: boolean): string;
  5. declare function xAddressToClassicAddress(xAddress: string): {
  6. classicAddress: string;
  7. tag: number | false;
  8. test: boolean;
  9. };
  10. declare function decodeXAddress(xAddress: string): {
  11. accountId: Buffer;
  12. tag: number | false;
  13. test: boolean;
  14. };
  15. declare function isValidXAddress(xAddress: string): boolean;
  16. export { codec, encodeSeed, decodeSeed, encodeAccountID, decodeAccountID, encodeNodePublic, decodeNodePublic, encodeAccountPublic, decodeAccountPublic, isValidClassicAddress, classicAddressToXAddress, encodeXAddress, xAddressToClassicAddress, decodeXAddress, isValidXAddress, };