Signing Transactions
Last updated
Was this helpful?
Last updated
Was this helpful?
Transactions are a formal action on a blockchain. They can contain a simple sending of Lumen (Payment Operation) or sending tokens creating data on the blockchain network and so on.
In Rabet, use the rabet.sign
method to send a transaction.
This function accepts a transaction envelope XDR and network type(mainnet or testnet), When you put an XDR string and network type inside this method and call it, Rabet decodes it and shows its details to the user, if the user confirms and signs it, you receive the signed XDR.
Example of the message that the user will receive when calling the sign
function:
You can use StellarSdk to submit the transaction to the network. Like so:
You can learn more about Stellar SDKs .