Skip to content

Commands ​

Commands are the primary way your mini app interacts with the Movement SDK. They enable blockchain transactions, device features, and platform capabilities.

Available Commands ​

Blockchain ​

View Function Call read-only Move view functions to fetch on-chain data

Send Transaction Execute blockchain transactions with user approval

Sign Message (Coming Soon) Sign messages for authentication and verification

Device Features ​

Scan QR Code Scan wallet addresses and QR codes

Haptic Feedback Provide tactile feedback for user actions

Camera (Coming Soon) Capture photos and access media library

Biometrics (Coming Soon) Authenticate with Face ID / Touch ID

Location (Coming Soon) Access device GPS location

Platform ​

Notifications Send push notifications to users

Share (Coming Soon) Open native share sheet

Storage (Coming Soon) Save data locally on device

Analytics ​

Analytics Track events, screens, and user properties

Usage Patterns ​

All commands are available through the SDK instance:

typescript
// Get SDK instance
const sdk = window.movementSDK;

// Or use React hook
const { sdk } = useMovementSDK();

// Call command
const result = await sdk.sendTransaction({...});

Response Handling ​

Commands return promises that resolve with results or reject with errors:

typescript
try {
  const result = await sdk.sendTransaction({...});
  console.log('Success:', result);
} catch (error) {
  console.error('Error:', error.message);
}

See Responses for detailed error handling patterns.

Rate Limits ​

Commands are rate-limited to prevent abuse:

  • Transactions: 300 per day per user
  • Notifications: 50 per day per user
  • Other commands: 1000 per hour

Rate limit errors return status code 429.

Released under the MIT License.