Native API

The Filecoin native API is the Lotus JSON-RPC interface. Methods use Filecoin.<Method> names and Filecoin data structures: CIDs (as {"/": "bafy..."}), tipsets, actors, and attoFIL balances (1 FIL = 10^18 attoFIL). Read methods require no authentication token.

Base URL

bashhttps://shared.eu-central-1.getblock.io/

Send a POST request with a JSON-RPC 2.0 body. Many state methods take a tipset key as their final parameter — an array of block CIDs identifying the tipset to read against. Pass an empty array [] to read the current chain head.

Chain

MethodDescription
Filecoin.ChainHeadThe current chain head tipset
Filecoin.ChainGetTipSetByHeightThe tipset at an epoch
Filecoin.ChainGetBlockA block header by CID
Filecoin.ChainGetBlockMessagesThe messages in a block
Filecoin.ChainGetMessageA message by CID

State

MethodDescription
Filecoin.StateGetActorAn actor's nonce and balance
Filecoin.StateLookupIDThe ID address for an address
Filecoin.StateAccountKeyThe public-key address for an account
Filecoin.StateMinerPowerA miner's storage power
Filecoin.StateNetworkVersionThe network protocol version

Wallet, Mpool & Gas

MethodDescription
Filecoin.WalletBalanceAn address balance in attoFIL
Filecoin.MpoolGetNonceThe next nonce for a sender
Filecoin.GasEstimateMessageGasFill a message's gas fields

Node

MethodDescription
Filecoin.VersionNode version and block delay

Support

See Also