Transaction Examples
Transfer tokens & NFTs, manage account resources, and Interact with smart contracts
Algorand
EVM
The code snippets in this section are passed into the
createTransaction
function as the transaction
value.const transaction = await oreId.createTransaction({
chainAccount: signingAccount.chainAccount, // use account that was logged in
chainNetwork: signingAccount.chainNetwork,
transaction: transactionExample // txn samples passed in here
signOptions: {
broadcast: true,
returnSignedTransaction: false,
},
});
Signing the transaction and broadcasting to the blockchain for fulfillment is simple when using the ORE ID WebPopup.
oreId.popup
.sign({ transaction })
.then( onSuccess )
.catch( onError );
The
transactionExample
can be also be encoded in base64 and submitted to the ORE ID API for signing and sending.post
https://service.oreid.io
/api/transaction/sign
Submit a transaction to sign and/or broadcast.
Last modified 2mo ago