UNPKG

@coolwallet/xrp

Version:
20 lines (19 loc) 914 B
import { coin as COIN } from '@coolwallet/core'; import * as types from './config/types'; export { TOKENTYPE } from './config/tokenType'; export default class XRP extends COIN.ECDSACoin implements COIN.Coin { constructor(); /** * Get XRP address by index */ getAddress(transport: types.Transport, appPrivateKey: string, appId: string, addressIndex: number): Promise<string>; getAddressByAccountKey(accPublicKey: string, accChainCode: string, addressIndex: number): Promise<string>; /** * Sign XRP Payment. * @description TransactionType must be 'Payment', Flags must be 2147483648; */ signTransaction(signTxData: types.SignTxType): Promise<string>; signMessage(signMsgData: types.SignMsgType): Promise<string>; signTrustSet(signTxData: types.SignTrustSetType): Promise<string>; signIouTransfer(signTxData: types.SignIouTransferType): Promise<string>; }