Broadcast Transactions
Broadcast to the Network.
await newCircuit.start({publicKey, ipfsCID, authSig, broadcast: true});// Generate or obtain the constructed unsigned transaction data.
const {unsignedTransactionDataObject, LitActionCode} = await newCircuit.setActions([contractAction]);unsignedTransactionDataObject = {
generatedUnsignedDataContract1: {
"to": "0x123abc...",
"nonce": 0,
"chainId": 137,
"gasLimit": { "_hex": "0x186a0", "_isBigNumber": true },
"maxFeePerGas": { "_hex": "0x2dc6c0", "_isBigNumber": true },
"maxPriorityFeePerGas": { "_hex": "0x16e360", "_isBigNumber": true },
"from": "0xabc123...",
"data": "0xa9059cbb0000000000000000000000005beeb...",
"value": { "_hex": "0x0", "_isBigNumber": true },
"type": 2
},
generatedUnsignedDataContract2: {
"to": "0xdef456...",
"nonce": 2,
"chainId": 137,
"gasLimit": { "_hex": "0x186a0", "_isBigNumber": true },
"maxFeePerGas": { "_hex": "0x2dc6c0", "_isBigNumber": true },
"maxPriorityFeePerGas": { "_hex": "0x16e360", "_isBigNumber": true },
"from": "0x456def...",
"data": "0xa9059cbb0000000000000000000000004abcf...",
"value": { "_hex": "0x0", "_isBigNumber": true },
"type": 2
}
}Last updated