@fioprotocol/fiosdk
Version:
The Foundation for Interwallet Operability (FIO) is a consortium of leading blockchain wallets, exchanges and payments providers that seeks to accelerate blockchain adoption by reducing the risk, complexity, and inconvenience of sending and receiving cryp
58 lines • 1.87 kB
TypeScript
import { Account, Action, FioSentItemContent, RequestFundsResponse } from '../../entities';
import { RequestConfig } from '../Transactions';
import { SignedTransaction } from './SignedTransaction';
export type FundsRequestRequestProps = {
amount: number;
maxFee: number;
chainCode: string;
tokenCode: string;
payeeFioAddress: string;
payerFioAddress: string;
payeeTokenPublicAddress: string;
payerFioPublicKey?: string;
hash?: string;
memo?: string;
offlineUrl?: string;
encryptPrivateKey?: string;
technologyProviderId: string;
};
export type FundsRequestRequestData = {
actor: string;
content: string;
max_fee: number;
payee_fio_address: string;
payer_fio_address: string;
tpid: string;
};
export declare class RequestNewFunds extends SignedTransaction<FundsRequestRequestData, RequestFundsResponse> {
ENDPOINT: "chain/new_funds_request";
ACTION: Action;
ACCOUNT: Account;
props: ReturnType<RequestNewFunds['getResolvedProps']>;
constructor(config: RequestConfig, props: FundsRequestRequestProps);
getData: () => {
actor: string;
content: string;
max_fee: number;
payee_fio_address: string;
payer_fio_address: string;
tpid: string;
};
getResolvedProps: (props: FundsRequestRequestProps) => {
encryptPrivateKey: string | null;
hash: string | null;
memo: string | null;
offlineUrl: string | null;
payerFioPublicKey: string;
amount: number;
maxFee: number;
chainCode: string;
tokenCode: string;
payeeFioAddress: string;
payerFioAddress: string;
payeeTokenPublicAddress: string;
technologyProviderId: string;
};
getResolvedContent: () => FioSentItemContent;
}
//# sourceMappingURL=RequestNewFunds.d.ts.map