Build
Skip to content

Sending transactions

TypeScript
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))