Transactions — Move REST API
Overview
Submit signed Move transactions and query by hash or version.
Endpoint
POST /v1/transactions
Movement-Specific Notes
- Ensure payloads are properly BCS-encoded.
- Fast finality: transactions confirm in ~1–3 seconds typically.
Request
Body Schema
{
"sender": "0x...",
"sequence_number": "string",
"max_gas_amount": "string",
"gas_unit_price": "string",
"expiration_timestamp_secs": "string",
"payload": { "type": "entry_function_payload", "function": "...", "type_arguments": [], "arguments": [] },
"signature": { "type": "ed25519_signature", "public_key": "0x...", "signature": "0x..." }
}
Response
Success Response (202)
{ "hash": "0x..." }
Code Examples
TypeScript (Aptos SDK)
import { Aptos, AptosConfig, Network, Ed25519PrivateKey } from '@aptos-labs/ts-sdk';
const cfg = new AptosConfig({ network: Network.CUSTOM, fullnode: 'https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1' });
const aptos = new Aptos(cfg);
// Build + sign + submit transaction via SDK helpers
Python
from aptos_sdk.client import RestClient
client = RestClient('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1')
# Build/sign/submit using aptos-sdk helpers
cURL
curl -X POST https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1/transactions \
-H "Content-Type: application/json" \
-d '{"sender":"0x...","payload":{}}'
EVM Equivalent
eth_sendRawTransaction
for EVM.