@zondax/filecoin-signing-tools
Version:
Filecoin Signing Tools
16 lines (15 loc) • 653 B
TypeScript
import { AxiosInstance } from 'axios';
import { GasEstimationResponse, GetNonceResponse, ReadStateResponse, SendSignMessageResponse, SignedMessage, TransactionRaw } from './types';
type Args = {
url: string;
token: string;
};
export default class FilecoinRPC {
requester: AxiosInstance;
constructor(args: Args);
getNonce(address: string): Promise<GetNonceResponse>;
sendSignedMessage(signedMessage: SignedMessage, skipStateWaitMsg?: boolean): Promise<SendSignMessageResponse>;
getGasEstimation(message: TransactionRaw): Promise<GasEstimationResponse>;
readState(address: string): Promise<ReadStateResponse>;
}
export {};