Optional
abisOptional
beforeFunction to be called before sending a transaction to the blockchain. It is useful to apply multisignatures to the transaction.
const signer2 = Signer.fromSeed("signer2");
const signer3 = Signer.fromSeed("signer3");
const addMoreSignatures = async (tx, opts) => {
await signer2.signTransaction(tx);
await signer3.signTransaction(tx);
};
const { transaction } = await koin.transfer(
{
from: "16MT1VQFgsVxEfJrSGinrA5buiqBsN5ViJ",
to: "1Gvqdo9if6v6tFomEuTuMWP1D7H7U9yksb",
value: "1000000",
},
{
payer: signer2.getAddress(),
beforeSend: addMoreSignatures,
}
);
Optional
options: SendTransactionOptionsOptional
broadcastBroadcast
Boolean to define if the transaction should be broadcasted to the different nodes in the network. By default it is true.
Set it to false if you want to interact with a contract for testing purposes and check the possible events triggered.
Optional
chainChain ID
If this option is not set it will be taken by querying the blockchain
Optional
nonceTransaction nonce
It can be the nonce of the payee or the nonce of the payer. Use the payee's nonce when the payer's nonce changes continuosly without your control, for instance, when the payer is a dApp.
The nonce is not required to be consecutive, only greater than the previous one.
If this option is not set it will be taken from the blockchain depending on the payer/payee configuration.
Optional
payeePayee
Address that increases the nonce. When this option is not set the blockchain will increase the payer's nonce.
Optional
payerPayer
Address that will pay the resource credits (aka mana) consumed in the transaction.
If this option is not set it will take the address of the signer as payer.
Optional
rcResource Credits limit
Max amount of mana to be spent. If this option is not set it will be taken by querying the actual mana of the payer
Optional
sendSend abis
Boolean to define if the abis should be shared with the signer so it will be able to decode the operations. By default it is true.
Generated using TypeDoc
Collection of Abis so that the receiver can parse the operations in the transaction