@ledgerhq/coin-filecoin
Version:
Ledger Filecoin Coin integration
8 lines • 418 B
JavaScript
import { fetchEstimatedFees } from "../../network/api";
// The Filecoin REST API has no standalone nonce endpoint. We derive the nonce
// from the fee-estimation response, which includes the current account nonce.
export async function getNextSequence(address) {
const result = await fetchEstimatedFees({ from: address, to: address });
return BigInt(result.nonce);
}
//# sourceMappingURL=getNextSequence.js.map