Movement
Movement API is available on Web3 API platform.
Movement Mainnet is a general-purpose Layer 2 built by Movement Labs to scale Ethereum applications and introduce the Move Virtual Machine (MoveVM) to a broader ecosystem. It features dual execution, fast settlement, and decentralized sequencing for high performance and interoperability.
In order for your Web3 application to interact with the Movement blockchain — either by reading blockchain data or sending transactions to the network — it must connect to a Movement node. Developers interact with the blockchain using the methods provided by the API.
Movement API uses the REST interface for querying, responses come in JSON format.
Methods supported
Accounts:
- Get account — retrieves the authentication key and the sequence number for an account address.
- Get account resources — retrieves all account resources for a given account and a specific ledger version.
- Get account modules — retrieves all account modules' bytecode for a given account at a specific ledger version.
- Get account resource — retrieves an individual resource from a given account and at a specific ledger version.
- Get account module — retrieves an individual module from a given account and at a specific ledger version.
Blocks:
- Get blocks by height — retrieves the transactions in a block and the corresponding block information.
- Get blocks by version — retrieves the transactions in a block and the corresponding block information by version in the block.
Events:
- Get events by creation number — retrieves events by creation number.
- Get events by event handle — retrieves events by event handle.
General:
- Get ledger info — retrieves the latest ledger information.
Table:
- Get table item — retrieves a table item.
- Get raw table item — retrieves a raw table item.
Transactions:
- Get transactions — retrieves on-chain committed transactions.
- Submit transaction — submits a transaction in JSON or BCS.
- Get transaction by hash — retrieves a transaction by its hash.
- Get transaction by version — retrieves a transaction by a given version.
- Get account transactions — retrieves on-chain committed transactions from an account.
- Submit batch transactions — submits multiple transactions.
- Simulate transaction — simulates transaction submission.
- Encode submission — accepts an EncodeSubmissionRequest, which internally is a UserTransactionRequestInner (and optionally secondary signers) encoded as JSON, validates the request format, and then returns that request encoded in BCS.
- Estimate gas price — estimates gas price.
View:
- Execute view function of a module — executes the Move function with the given parameters and return its execution result.
Methods
Accounts, Blocks, Events, General, Table, Transactions
Get accountGet account resourcesGet account modulesGet account resourceGet account moduleGet blocks by heightGet blocks by versionGet events by creation numberGet events by event handleGet ledger infoGet table itemGet raw table itemGet transactionsSubmit transactionGet transaction by hashGet transaction by versionGet account transactions