Import
import type { TransferRequest, EstimateFeeRequest, ListRestTransactionsRequest, RestTransaction } from "@getpara/rest-sdk";
Transfers and fee estimates
interface TransferRequest {
to: string; value: string; chainId?: string | number; tokenAddress?: string;
nonce?: number; gasLimit?: string; maxFeePerGas?: string;
maxPriorityFeePerGas?: string; gasPrice?: string; type?: 0 | 2;
kind?: 'NATIVE' | 'ERC20' | 'SPL'; broadcast?: boolean; network?: 'SOLANA' | 'SOLANA_DEVNET';
}
interface TransferResponse { signedTransaction: string; txHash?: string; transactionId?: string; }
interface EstimateFeeRequest { to: string; value: string; chainId?: string | number; tokenAddress?: string; network?: 'SOLANA' | 'SOLANA_DEVNET'; }
interface EstimateFeeResponse {
estimatedFee: string; transferAmount: string; currency: string;
gasLimit?: string; maxFeePerGas?: string; maxPriorityFeePerGas?: string; gasPrice?: string; warning?: string;
}
Transaction history
interface ListRestTransactionsRequest {
limit?: number; cursor?: string;
status?: 'pending' | 'submitted' | 'confirmed' | 'reverted' | 'failed';
intentKind?: 'transfer' | 'sign_transaction';
}
interface RestTransaction {
transactionId: string; walletId: string; walletType: 'EVM' | 'SOLANA';
intentKind: 'transfer' | 'sign_transaction'; status: string;
chainId?: string; network?: 'SOLANA' | 'SOLANA_DEVNET'; to?: string; value?: string; tokenAddress?: string;
hash?: string; blockNumber?: string; blockHash?: string;
failureStage?: 'mpc_sign' | 'signature_apply' | 'signer_verify' | 'broadcast' | 'monitor_timeout';
failureCode?: string; failureMessage?: string; createdAt: string; submittedAt?: string; resolvedAt?: string;
}