Transactions
Indexer
- Overview
- Installation
- Endpoints
- Examples
Indexer Gateway
Analytics
- Overview
- Endpoints
- Examples
Metadata
- Overview
- Endpoints
- Examples
Infrastructure
- Overview
- Endpoints
Builder
- Overview
- Endpoints
Marketplace
- Overview
- Endpoints
- Examples
Node Gateway
Examples
Sending Transactions
const transactions = [
{
to: '0x468E8e29F6cfb0F6b7ff10ec6A1AB516ec849c04',
value: '1000000000000000000'
}
]
// This sends the transaction to the transactions API, and returns immediately once the transactions API responds.
const response = await account.sendTransaction(transactions)
// This waits for the transaction to be confirmed on-chain.
const receipt = await response.wait()
console.log(JSON.stringify(receipt, undefined, 2))
Was this page helpful?