⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

Transaction Encode — Move REST API

Overview

Encodes transactions in BCS format for signing/submission.

Endpoint

POST /v1/transactions/encode_submission

Movement-Specific Notes

  • Use correct function/module/type arguments for entry functions.

Request

Body Schema

{ "sender": "0x...", "payload": { "type": "entry_function_payload", "function": "..." } }

Response

Success Response (200)

"0x..." 

Code Examples

TypeScript (Aptos SDK)

// SDK provides encode helpers for building payloads

Python

# Build payload using aptos_sdk types and encode

cURL

curl -X POST https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1/transactions/encode_submission \
-H "Content-Type: application/json" \
-d '{"sender":"0x...","payload":{}}'

EVM Equivalent

Build RLP/EIP-2718 tx locally or via libraries (ethers/web3) before calling eth_sendRawTransaction.