ts-sdk-transactions
TypeScript SDK: Transactions
Purpose
Guide building, signing, submitting, and simulating transactions with @aptos-labs/ts-sdk. Use the build → sign →
submit → wait pattern; optionally simulate before submit.
ALWAYS
- Call
aptos.waitForTransaction({ transactionHash })after submit – do not assume transaction is committed aftersignAndSubmitTransaction. - Use
aptos.transaction.build.simple()for entry function payloads – passsenderanddata: { function, functionArguments, typeArguments? }. - Simulate before submit for critical/high-value flows – use
aptos.transaction.simulate.simple()and checksuccessandvm_status. - Use the same Account instance for signer that you use for
senderaddress when building (e.g.account.accountAddressas sender,accountas signer).
NEVER
More from iskysun96/aptos-agent-skills
generate-tests
Creates comprehensive test suites for Move contracts with 100% coverage requirement. Triggers on: 'generate tests',
38write-contracts
Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and
35deploy-contracts
Safely deploys Move contracts to Aptos networks (devnet, testnet, mainnet) with pre-deployment verification. Triggers
32security-audit
Audits Move contracts for security vulnerabilities before deployment using 7-category checklist. Triggers on: 'audit
32analyze-gas-optimization
Analyze and optimize Aptos Move contracts for gas efficiency, identifying expensive operations and suggesting
31search-aptos-examples
Searches aptos-core and daily-move for reference implementations before writing contracts. Triggers on: 'search
31