ethers.js icon indicating copy to clipboard operation
ethers.js copied to clipboard

Signing transactions send to Quorum permissioned blockchain

Open michaelerose opened this issue 8 years ago • 17 comments

I got an "Invalid sender" error message when I called the sendTransaction method for a local permissioned network launched by the quorum-maker application

let contract = await ethers.Contract.getDeployTransaction ( byteCode, compile.interface ) ; let response = wallet.sendTransaction ( contract ) ;

The error was thrown within the Quorum library - which does more stringent error checking than vanilla go-ethereum - and I traced this to the ether.js transaction signature.

I replaced lines 280-288 in ethers/wallet/wallet.js and used the [email protected] signer instead, i.e. the code

var signedTransaction = self.sign({ to: results[2], data: data, gasLimit: gasLimit, gasPrice: results[0], nonce: results[1], value: value, chainId: chainId }) ; 

was replaced with

var txData = { to: results[2], data: data, gasLimit: gasLimit, gasPrice: results[0], nonce: results[1], value: value, chainId: chainId } ;
txData.from = wallet.address ;
let web3SignedTx = await web3.eth.signTransaction ( txData , wallet.address ) ;
let signedTransaction = web3SignedTx.raw ;

and I successfully deployed the transaction to the blockchain. Not a great solution since I want to remove web3 from my code, but it works.

The relevant Quorum code is in quorum/core/types directory in source files transactions.go and transaction_signing.go, which overrides some of ethereum-go's transaction processing.

michaelerose avatar Apr 12 '18 20:04 michaelerose

What is the difference in these two cases? A signed transaction does not require a from (it is not included in the RLP transaction). There shouldn't be anything to be more stringent about.

Can you include a console.log for each of the parameters being passed into the function?

ricmoo avatar Apr 12 '18 22:04 ricmoo

Which function might that be?


From: Richard Moore [email protected] Sent: Thursday, April 12, 2018 6:16 PM To: ethers-io/ethers.js Cc: michaelerose; Author Subject: Re: [ethers-io/ethers.js] Signing transactions send to Quorum permissioned blockchain (#162)

What is the difference in these two cases? A signed transaction does not require a from (it is not included in the RLP transaction). There shouldn't be anything to be more stringent about.

Can you include a console.log for each of the parameters being passed into the function?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ethers-io/ethers.js/issues/162#issuecomment-380961026, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAl4Z23N6tfYIMzt4M1bObeuz4NySfWks5tn9I0gaJpZM4TSakI.

michaelerose avatar Apr 12 '18 22:04 michaelerose

Before the self.sign, add console.log({ to: results[2], data: data, gasLimit: gasLimit, gasPrice: results[0], nonce: results[1], value: value, chainId: chainId });.

Something weird is happening if it is throwing an Invalid sender.

Can you also console.log(signedTransaction)? I can parse that and see what might be causing unhappiness.

ricmoo avatar Apr 12 '18 23:04 ricmoo

I'll send you this stuff after I get the constant function call issue under control


From: Richard Moore [email protected] Sent: Thursday, April 12, 2018 7:02 PM To: ethers-io/ethers.js Cc: michaelerose; Author Subject: Re: [ethers-io/ethers.js] Signing transactions send to Quorum permissioned blockchain (#162)

Before the self.sign, add console.log({ to: results[2], data: data, gasLimit: gasLimit, gasPrice: results[0], nonce: results[1], value: value, chainId: chainId });.

Something weird is happening if it is throwing an Invalid sender.

Can you also console.log(signedTransaction)? I can parse that and see what might be causing unhappiness.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ethers-io/ethers.js/issues/162#issuecomment-380970238, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAl4fJnJrr_RosKVPYCPauF7k5ihkx3ks5tn90UgaJpZM4TSakI.

michaelerose avatar Apr 12 '18 23:04 michaelerose

Awesome.

This is another thing that will be coming soon too... Meaningful error messages. :)

ricmoo avatar Apr 12 '18 23:04 ricmoo

Here's the output you asked for:

{ to: undefined, data: '0x06000600060004000502030401050600000005070600000008000000050006000900080006010000010006000000030906000000000300000600060006000400050206000004030601000600030005070603000000000000000007000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000030500040106060301020006050000000801010406000403050705000600000008000000050003040105060004000507060000000800000005000600050306000609050605000600040005010600000009000901010608010502060002000001060004000501080009010003090000030500060002000900050600000001060506020700070007020300050802000004000200020801000000050606000702030806040503000005000606020007000000000000070000090300000001040000000508000600090100080003060800000209', gasLimit: 1500000, gasPrice: BigNumber { _bn: <BN: 0> }, nonce: 0, value: '0x00', chainId: 87 }

signedTransaction:

0xf901bb80808316e3608080b9016c0600060006000400050203040105060000000507060000000800000005000600090008000601000001000600000003090600000000030000060006000600040005020600000403060100060003000507060300000000000000000700000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000003050004010606030102000605000000080101040600040305070500060000000800000005000304010506000400050706000000080000000500060005030600060905060500060004000501060000000900090101060801050206000200000106000400050108000901000309000003050006000200090005060000000106050602070007000702030005080200000400020002080100000005060600070203080604050300000500060602000700000000000007000009030000000104000000050800060009010008000306080000020981d1a0261f85abdb25c5921a15e5ab476227f6c2feaf94e7fd3f08e30c168cf6225811a0462d6847be47a08c222be04319dcc854f36a8f979c88a66eb1abc82b0b48dd21

Error: { Error: Invalid sender at getResult (/home/michael/blockchain/trivial/node_modules/ethers/providers/json-rpc-provider.js:28:21) at exports.XMLHttpRequest.request.onreadystatechange (/home/michael/blockchain/trivial/node_modules/ethers/providers/provider.js:591:30) at exports.XMLHttpRequest.dispatchEvent (/home/michael/blockchain/trivial/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:591:25) at setState (/home/michael/blockchain/trivial/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:610:14) at IncomingMessage. (/home/michael/blockchain/trivial/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:447:13) at IncomingMessage.emit (events.js:165:20) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:152:19) code: -32000, data: undefined, url: 'http://localhost:22000', body: '{"method":"eth_sendRawTransaction","params":["0xf901bb80808316e3608080b9016c0600060006000400050203040105060000000507060000000800000005000600090008000601000001000600000003090600000000030000060006000600040005020600000403060100060003000507060300000000000000000700000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000003050004010606030102000605000000080101040600040305070500060000000800000005000304010506000400050706000000080000000500060005030600060905060500060004000501060000000900090101060801050206000200000106000400050108000901000309000003050006000200090005060000000106050602070007000702030005080200000400020002080100000005060600070203080604050300000500060602000700000000000007000009030000000104000000050800060009010008000306080000020981d1a0261f85abdb25c5921a15e5ab476227f6c2feaf94e7fd3f08e30c168cf6225811a0462d6847be47a08c222be04319dcc854f36a8f979c88a66eb1abc82b0b48dd21"],"id":42,"jsonrpc":"2.0"}', responseText: '{"jsonrpc":"2.0","id":42,"error":{"code":-32000,"message":"Invalid sender"}}\n' }


From: Richard Moore [email protected] Sent: Thursday, April 12, 2018 7:02 PM To: ethers-io/ethers.js Cc: michaelerose; Author Subject: Re: [ethers-io/ethers.js] Signing transactions send to Quorum permissioned blockchain (#162)

Before the self.sign, add console.log({ to: results[2], data: data, gasLimit: gasLimit, gasPrice: results[0], nonce: results[1], value: value, chainId: chainId });.

Something weird is happening if it is throwing an Invalid sender.

Can you also console.log(signedTransaction)? I can parse that and see what might be causing unhappiness.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ethers-io/ethers.js/issues/162#issuecomment-380970238, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAl4fJnJrr_RosKVPYCPauF7k5ihkx3ks5tn90UgaJpZM4TSakI.

michaelerose avatar Apr 13 '18 02:04 michaelerose

Ok... Hopefully we're getting close. :)

So, can I bug you for one more thing, which is the signed transaction from Web3, which was working?

The signed transaction looks fine and has the from address 0x37FF45Fe9d23fC7867Fd72631F9EDF7021D5be8e.

I've never used a Quorum permission network, but a few questions:

  • Are only specific from addresses allowed to send?
  • Is the gas price allowed to be 0?

Once you send me a signed transaction from Web3, I can compare the two.

ricmoo avatar Apr 13 '18 18:04 ricmoo

Richard -

These vey long signed transactions are for a more complicated solidity file than the trivial one I sent you ealier .... the web3 and ethers signed transactions wee identical for the trivial example. I was seeing an exception from quorum when I used the ethers version. The quorum blockchain should be backward-compatible with vanilla ethereum. I added the "from" field to make web3 happy ... had nothing to do with quorum. Pretty sure zero gas is ok, but I'll verify this

  • Michael

txData : { to: undefined, data: '0x060006000600040005020600040005010602000000000000030800030800060200000000000008030309080100010600040005020800080005010802000109010900060002000001080005010802000109010900060002000001080005010802000109010900060002000001080005010802000109010900060002000001080005010600000008000504060000010600000006000002000000030109010603030600000106000000060000020000000301060107090005050901050008050900050008040600000108020800050106020000000007060902090106000200000109000602000000050605050605000500060000020801080005010602000000000800090209010600020000010900060200000005060505060500050005000500080206000003090008000501060200000000000509020901060002000001090006020000000506050506050005000602000000000000080206040001000000000000000006020000000601060602000000000000080200020107000405060500060000000504060000010600000006000002000000030106080101050601000800000002080206000400050106000000060004000501080008030003080108050808080800010903050005000500050001050105060200000000000305070600000008000000050005000500050005000500060200000006010005060500060200000001040008010600040008000501090008010001060004000502060000010801050207000407000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000001090005070500060200000001090008010600040008000501090008010001060004000502060000040801050207000407040005060504000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000001000305070500060200000001000308010600040008000501090008010001060004000502060000000801050207000407040005060405050204000400040504000504000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000105060200000002010305070600000408000504060000010901090006000000010901060802080005000002010709000505050006020000000403080506050006020000000206000801060004000800050109000801000106000400050206000001080105020700040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206040001000000000000000006020000000800020602000000040300080200020107000405060500080006020000000200040507050006020000000200040801060004000800050109000801000106000400050206000004080105020700040005050400040900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206040001000000000000000006020000000800020602000000040300080200020107000405060500080006020000000300080507050006020000000300080801060004000800050109000801000106000400050206000009080105020700040005050400040904030409050004010400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206040001000000000000000006020000000800020602000000040300080200020107000405060500010506020000000302030507060000040800050406000002090109000600000001090106060000010803060200000002000805060500060200000003070008010600040008000501090008010001060004000502060000010801050207000403000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000003000405070500060200000003000408010600040008000501090008010001060004000502060000040801050207000403040005020500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000004010805070500060200000004010808010600040008000501090008010001060004000502060000090801050207000403040005020500040005020401050404050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000105060200000004030305070600000408000504060000000901090006000000010901060600000108030602000000020008050605000600000008000000050005000506050006000000060200000004040706020000000500000506050006020000000405010602000000050000050605000500080309000500080206000000080105010803050101040602000000040600050706000000090305000602000000050500050605000500060000000500080205010801010001050602000000050507050708010801080105010801010006020000000408070507000005000001060002000001050107000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009000004070000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000206000001060000080600000200000003010901060803080208010501080101000602000000040008050700000500000106000200000105010700000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000900000407000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020600000106000008060000020000000301090106010401050105060200000005040005070600000009030500060200000005050005060500060000010001060200000004070005060500060000010903050005000500050005000902090105000500050605000802080005040600000108010600000101060105060100010000000200030106060000020900000409000600000005020600020006000000020009000600010000010600020009000004080100010902080206000100010006020000000500080507080005010600000001090106080308000001010708050505060200000005000805060500080208000001060000010001080505050802010506020000000500080507090108020001050008020801010101050602000000050008050708020501080205050901060002000001090109000600000100010900060200000005000005060500050006020000000500060902090105000602000000050000050605000500090005060500060002000600040005010900080100010600040005020600000008010502090005060500060200000006010909010900050008000802010101050602000000050006050706000000080105050600000100010602000000060003050605000900050605000601000900000800060200000006020006000000030906000000000300000600060006000400050206000004030601000601000008000507060300000000000000000700000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000003050004010606030102000605000000080101040601000009020507080006030300000000000005010406010000000705070800060306090402000000070104060100000006050708000603070109000000000001040601000107000507080006030800050204070400010406010001000505070800060300030000000201070104060100010008050708000603000300080000060901040601000100000507080006030000070602000404010406010002090005070500060000000800000005000304010506010000090005070600000008000000050006010000000506010002000505060500060004000501090008010502060002000001060004000501080009010003090000030500030401050601000000020507060000000800000005000601000000000601000200060506050006000400050106000001060000000600000200000003090009010106080105020600020000010600040005010800090100030900000305000304010506010000000105070600000008000000050006010000000906010002000505060500060004000501060002000800080205020801090008010001080308010801050108010502060002000001090105000800050109000600020000010900080008030803060000000500080308010100010506010001030505070800080200010501080308020001050206000200000106010001010005060500050005000500050009000500090008010001090006000100010608000105060100010602050708000802000308000501060000010803060002000003060100010000000000030109010608010502060002000001090105000500050009020500050005000600040005010800090100030900000305000304010506010001070005070600000008000000050006010001000306000004080003050600000106000000060000020000000301060900060004040600020408000305090008010001090008030001030508000600020006000100080200010801090000040801000200010600040005010900080100010600040005020801080105020902090109000600020008040001080308030800080208040307050009040906050005000500050009010305010501050901050006010003090309000500050605000000050003040105060100010000050706000000080000000500060100000009060100030004050605000304010506010001000305070600000008000000050006010000000906010004040005060500030401050601000200060507060000000800000005000601000200000601000400000506050006000400050106000001060000000600000200000003080401060801050208010105010506000400080200010502060006000600020008020001080108010502090008020001080408010801050108010502060002000001090105000800050109000600020000010900080008030803060000000500080308010100010506010002060105070800080200010501080308020001050206000200000106010002040905060500050005000500050009000500090008010001090006000100010608000105060100020800050708000802000308000501060000010803060002000003060100010000000000030109010608010502060002000001090105000500050009040500050005000500050006000400050108000901000309000003050003040105060100020009050706000000080000000500060100020001060100050705050605000600040005010800080206000002080101010105060100020001050700000500060000000106080105020600020000010901050005000600040005010800090100030900000305000600000005040600000106000000060000020000000301060301050009000506050006000000050406000001060000000600000200000003010608010506050006000003080005040600000108010600000101060105060100010000000200030106060000020900000408000600010000010600020008000901000400020600020000010600040005010900080100010600040005020800090209010900080108010502060002000001080208000504060000010801060000010106010506010001000000020003010606000002090000040800010506010003080005070800060001000100060100030600050706010001000008000803050400040002080305020901060002000001090106010003080005060500080200010901090006000000050206000200060000000200090005000801050408010502090006000001000109000600020000010800080301010601000306000507080209000003060001000106080200010901050005000500050005000500080105060500060000050800050407030000000000000000000000000000000000000000000000000000000000000000000000000000000001090106060000010600000006000002000000030805010601070900050506000006080208000501060100030000090209010600020000010900060100050700050605000500060000070800050406000000010901060901010501050901090009010107090005050500050005060500060000020800050406000001080106000001010601050601000100000002000301060600000209000004080006000100000106000200080009010004000206000200000106000400050109000801000106000400050208000902090109000801080105020600020000010802080005040600000108010600000101060105060100010000000200030106060000020900000408000105060100030800050708000600010001000601000306000507060100010000080008030504000400020803050209010600020000010901060100030800050605000600000108000504060000010801060000010106010506010001000000020003010606000002090000040800060001000001060002000800090100040002060002000001060004000501090008010001060004000502080009020901090008010801050206000200000108020800050406000001080106000001010601050601000100000002000301060600000209000004080001050601000308000507080006000100010006010003060005070601000100000800080305040004000208030502090106000200000109010601000308000506050006000005080005040600000608000504060000010600000006000002000000030900090201060902090106000002060000000109060000010803010601050601000100000002000109000901010600040600020006000100080200010801090000040801000200010600040005010900080100010600040005020800090209010900080108010502060002000001080208000504060000010801060000010106010506010001000000020003010606000002090000040800010506010005060205070800060001000100060100050307050706010001000008000803050400040002080305020901060002000001090106010005060205060500080200010901090006000000050206000200060000000200090005000801050408010502090006000001000109000600020000010800080301010601000504050507080209000003060001000106080200010901050005000500050006000002090009030001050409010902050005000600000001060803050605000600000405040600000001060801050605000802080005040600000108010600000101060105060100010000000200030106060000020900000409000600000005020600020006000000020009000600010000010600020009000004080100010902080206000100010006010005000005070800050106000000010901060803080000010107080505050601000500000506050008020800000106000001000108050505080201050601000500000507090108020001050008020801010101050601000500000507080205010802050509010600020000010901090006000001000109000601000500010506050005000601000500080902090105000601000500000506050005000900050605000601000200030901090005000800080201010105060100050008050706000000080105050600000100010601000600020506050006010006050308010600040008000501090008010001060004000502060000010801050207000407000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060100080002050605000800060100060906050705000601000609060801060004000800050109000801000106000400050206000004080105020700040704000506050400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206010008000205060500080006010006000905070500060100060009080106000400080005010900080100010600040005020600000008010502070004070400050604050502040004000405040005040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060002000802000105020601000800020506050001050601000600070507060000040800050406000001090109000600000001090106080208000500000201070900050505000601000800000506050006010007030408010600040008000501090008010001060004000502060000010801050207000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060100080002050605000800060100070707050705000601000707070801060004000800050109000801000106000400050206000004080105020700040005050400040900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206010008000205060500080006010007000005070500060100070000080106000400080005010900080100010600040005020600000908010502070004000505040004090403040905000401040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060002000802000105020601000800020506050001050601000700030507060000040800050406000002090109000600000001090106060000010803060100060000050605000601000801000801060004000800050109000801000106000400050206000001080105020700040300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206010008000205060500080006010008050305070500060100080503080106000400080005010900080100010600040005020600000408010502070004030400050205000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060002000802000105020601000800020506050008000601000809060507050006010008090608010600040008000501090008010001060004000502060000090801050207000403040005020500040005020401050404050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060100080002050605000105060100000800050706000004080005040600000009010900060000000109010606000001080306010006000005060500050005060500060000000601000800000601000909000506050006010008000406010009090005060500050008030900050008020600000008010501080305010104060100080000050706000000090305000601000908070506050005000600000005000802050108010100010506010009080205070801080108010501080101000601000800060507000005000001060002000001050106000008060000020000090000040600000806000002000000020700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001090106080308020801050108010100060100090306050700000500000106000200000105010600000806000002000009000004060000080600000200000002070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000109010601040105010506010009070005070600000009030500060100090807050605000600000100010601000800010506050006000001090305000500050005000500090209010500050005060500060002000600040005010900080100010600040005020600000008010502090005060000000106050602070007000702030005080200000002000208000003000107000303040200000700040406000006060000030000070201030504000600050800020009060000070400000704050506000008000000020900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000000008464e4d4130303030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a46414e4e4945204d4145000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003555344000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014300000000000000000000000000000000000000000000000000000000000000', gasLimit: 55000001, gasPrice: '0x0', nonce: '0x0', value: '0x0', chainId: 87, from: '0x8b3f6df4c1bf085c28b332e3d2e1992630f154e1', gas: '0x3473bc1' }

ethers signed transaction

0xf921e380808403473bc18080b92194060006000600040005020600040005010602000000000000030800030800060200000000000008030309080100010600040005020800080005010802000109010900060002000001080005010802000109010900060002000001080005010802000109010900060002000001080005010802000109010900060002000001080005010600000008000504060000010600000006000002000000030109010603030600000106000000060000020000000301060107090005050901050008050900050008040600000108020800050106020000000007060902090106000200000109000602000000050605050605000500060000020801080005010602000000000800090209010600020000010900060200000005060505060500050005000500080206000003090008000501060200000000000509020901060002000001090006020000000506050506050005000602000000000000080206040001000000000000000006020000000601060602000000000000080200020107000405060500060000000504060000010600000006000002000000030106080101050601000800000002080206000400050106000000060004000501080008030003080108050808080800010903050005000500050001050105060200000000000305070600000008000000050005000500050005000500060200000006010005060500060200000001040008010600040008000501090008010001060004000502060000010801050207000407000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000001090005070500060200000001090008010600040008000501090008010001060004000502060000040801050207000407040005060504000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000001000305070500060200000001000308010600040008000501090008010001060004000502060000000801050207000407040005060405050204000400040504000504000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000105060200000002010305070600000408000504060000010901090006000000010901060802080005000002010709000505050006020000000403080506050006020000000206000801060004000800050109000801000106000400050206000001080105020700040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206040001000000000000000006020000000800020602000000040300080200020107000405060500080006020000000200040507050006020000000200040801060004000800050109000801000106000400050206000004080105020700040005050400040900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206040001000000000000000006020000000800020602000000040300080200020107000405060500080006020000000300080507050006020000000300080801060004000800050109000801000106000400050206000009080105020700040005050400040904030409050004010400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206040001000000000000000006020000000800020602000000040300080200020107000405060500010506020000000302030507060000040800050406000002090109000600000001090106060000010803060200000002000805060500060200000003070008010600040008000501090008010001060004000502060000010801050207000403000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000003000405070500060200000003000408010600040008000501090008010001060004000502060000040801050207000403040005020500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000004010805070500060200000004010808010600040008000501090008010001060004000502060000090801050207000403040005020500040005020401050404050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000105060200000004030305070600000408000504060000000901090006000000010901060600000108030602000000020008050605000600000008000000050005000506050006000000060200000004040706020000000500000506050006020000000405010602000000050000050605000500080309000500080206000000080105010803050101040602000000040600050706000000090305000602000000050500050605000500060000000500080205010801010001050602000000050507050708010801080105010801010006020000000408070507000005000001060002000001050107000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009000004070000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000206000001060000080600000200000003010901060803080208010501080101000602000000040008050700000500000106000200000105010700000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000900000407000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020600000106000008060000020000000301090106010401050105060200000005040005070600000009030500060200000005050005060500060000010001060200000004070005060500060000010903050005000500050005000902090105000500050605000802080005040600000108010600000101060105060100010000000200030106060000020900000409000600000005020600020006000000020009000600010000010600020009000004080100010902080206000100010006020000000500080507080005010600000001090106080308000001010708050505060200000005000805060500080208000001060000010001080505050802010506020000000500080507090108020001050008020801010101050602000000050008050708020501080205050901060002000001090109000600000100010900060200000005000005060500050006020000000500060902090105000602000000050000050605000500090005060500060002000600040005010900080100010600040005020600000008010502090005060500060200000006010909010900050008000802010101050602000000050006050706000000080105050600000100010602000000060003050605000900050605000601000900000800060200000006020006000000030906000000000300000600060006000400050206000004030601000601000008000507060300000000000000000700000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000003050004010606030102000605000000080101040601000009020507080006030300000000000005010406010000000705070800060306090402000000070104060100000006050708000603070109000000000001040601000107000507080006030800050204070400010406010001000505070800060300030000000201070104060100010008050708000603000300080000060901040601000100000507080006030000070602000404010406010002090005070500060000000800000005000304010506010000090005070600000008000000050006010000000506010002000505060500060004000501090008010502060002000001060004000501080009010003090000030500030401050601000000020507060000000800000005000601000000000601000200060506050006000400050106000001060000000600000200000003090009010106080105020600020000010600040005010800090100030900000305000304010506010000000105070600000008000000050006010000000906010002000505060500060004000501060002000800080205020801090008010001080308010801050108010502060002000001090105000800050109000600020000010900080008030803060000000500080308010100010506010001030505070800080200010501080308020001050206000200000106010001010005060500050005000500050009000500090008010001090006000100010608000105060100010602050708000802000308000501060000010803060002000003060100010000000000030109010608010502060002000001090105000500050009020500050005000600040005010800090100030900000305000304010506010001070005070600000008000000050006010001000306000004080003050600000106000000060000020000000301060900060004040600020408000305090008010001090008030001030508000600020006000100080200010801090000040801000200010600040005010900080100010600040005020801080105020902090109000600020008040001080308030800080208040307050009040906050005000500050009010305010501050901050006010003090309000500050605000000050003040105060100010000050706000000080000000500060100000009060100030004050605000304010506010001000305070600000008000000050006010000000906010004040005060500030401050601000200060507060000000800000005000601000200000601000400000506050006000400050106000001060000000600000200000003080401060801050208010105010506000400080200010502060006000600020008020001080108010502090008020001080408010801050108010502060002000001090105000800050109000600020000010900080008030803060000000500080308010100010506010002060105070800080200010501080308020001050206000200000106010002040905060500050005000500050009000500090008010001090006000100010608000105060100020800050708000802000308000501060000010803060002000003060100010000000000030109010608010502060002000001090105000500050009040500050005000500050006000400050108000901000309000003050003040105060100020009050706000000080000000500060100020001060100050705050605000600040005010800080206000002080101010105060100020001050700000500060000000106080105020600020000010901050005000600040005010800090100030900000305000600000005040600000106000000060000020000000301060301050009000506050006000000050406000001060000000600000200000003010608010506050006000003080005040600000108010600000101060105060100010000000200030106060000020900000408000600010000010600020008000901000400020600020000010600040005010900080100010600040005020800090209010900080108010502060002000001080208000504060000010801060000010106010506010001000000020003010606000002090000040800010506010003080005070800060001000100060100030600050706010001000008000803050400040002080305020901060002000001090106010003080005060500080200010901090006000000050206000200060000000200090005000801050408010502090006000001000109000600020000010800080301010601000306000507080209000003060001000106080200010901050005000500050005000500080105060500060000050800050407030000000000000000000000000000000000000000000000000000000000000000000000000000000001090106060000010600000006000002000000030805010601070900050506000006080208000501060100030000090209010600020000010900060100050700050605000500060000070800050406000000010901060901010501050901090009010107090005050500050005060500060000020800050406000001080106000001010601050601000100000002000301060600000209000004080006000100000106000200080009010004000206000200000106000400050109000801000106000400050208000902090109000801080105020600020000010802080005040600000108010600000101060105060100010000000200030106060000020900000408000105060100030800050708000600010001000601000306000507060100010000080008030504000400020803050209010600020000010901060100030800050605000600000108000504060000010801060000010106010506010001000000020003010606000002090000040800060001000001060002000800090100040002060002000001060004000501090008010001060004000502080009020901090008010801050206000200000108020800050406000001080106000001010601050601000100000002000301060600000209000004080001050601000308000507080006000100010006010003060005070601000100000800080305040004000208030502090106000200000109010601000308000506050006000005080005040600000608000504060000010600000006000002000000030900090201060902090106000002060000000109060000010803010601050601000100000002000109000901010600040600020006000100080200010801090000040801000200010600040005010900080100010600040005020800090209010900080108010502060002000001080208000504060000010801060000010106010506010001000000020003010606000002090000040800010506010005060205070800060001000100060100050307050706010001000008000803050400040002080305020901060002000001090106010005060205060500080200010901090006000000050206000200060000000200090005000801050408010502090006000001000109000600020000010800080301010601000504050507080209000003060001000106080200010901050005000500050006000002090009030001050409010902050005000600000001060803050605000600000405040600000001060801050605000802080005040600000108010600000101060105060100010000000200030106060000020900000409000600000005020600020006000000020009000600010000010600020009000004080100010902080206000100010006010005000005070800050106000000010901060803080000010107080505050601000500000506050008020800000106000001000108050505080201050601000500000507090108020001050008020801010101050601000500000507080205010802050509010600020000010901090006000001000109000601000500010506050005000601000500080902090105000601000500000506050005000900050605000601000200030901090005000800080201010105060100050008050706000000080105050600000100010601000600020506050006010006050308010600040008000501090008010001060004000502060000010801050207000407000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060100080002050605000800060100060906050705000601000609060801060004000800050109000801000106000400050206000004080105020700040704000506050400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206010008000205060500080006010006000905070500060100060009080106000400080005010900080100010600040005020600000008010502070004070400050604050502040004000405040005040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060002000802000105020601000800020506050001050601000600070507060000040800050406000001090109000600000001090106080208000500000201070900050505000601000800000506050006010007030408010600040008000501090008010001060004000502060000010801050207000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060100080002050605000800060100070707050705000601000707070801060004000800050109000801000106000400050206000004080105020700040005050400040900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206010008000205060500080006010007000005070500060100070000080106000400080005010900080100010600040005020600000908010502070004000505040004090403040905000401040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060002000802000105020601000800020506050001050601000700030507060000040800050406000002090109000600000001090106060000010803060100060000050605000601000801000801060004000800050109000801000106000400050206000001080105020700040300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206010008000205060500080006010008050305070500060100080503080106000400080005010900080100010600040005020600000408010502070004030400050205000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060002000802000105020601000800020506050008000601000809060507050006010008090608010600040008000501090008010001060004000502060000090801050207000403040005020500040005020401050404050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060100080002050605000105060100000800050706000004080005040600000009010900060000000109010606000001080306010006000005060500050005060500060000000601000800000601000909000506050006010008000406010009090005060500050008030900050008020600000008010501080305010104060100080000050706000000090305000601000908070506050005000600000005000802050108010100010506010009080205070801080108010501080101000601000800060507000005000001060002000001050106000008060000020000090000040600000806000002000000020700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001090106080308020801050108010100060100090306050700000500000106000200000105010600000806000002000009000004060000080600000200000002070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000109010601040105010506010009070005070600000009030500060100090807050605000600000100010601000800010506050006000001090305000500050005000500090209010500050005060500060002000600040005010900080100010600040005020600000008010502090005060000000106050602070007000702030005080200000002000208000003000107000303040200000700040406000006060000030000070201030504000600050800020009060000070400000704050506000008000000020900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000000008464e4d4130303030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a46414e4e4945204d414500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000355534400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001430000000000000000000000000000000000000000000000000000000000000081d1a075547b5c19821a43aee4400776d49a6bacff7f58dc625eacbe2af11628b0b2c79f569b40213919d1775c458453ff9fd1a1cba5eb51fe0785c9dac8968bc47c47

web3js signed transaction

0xf921e380808403473bc18080b92194060006000600040005020600040005010602000000000000030800030800060200000000000008030309080100010600040005020800080005010802000109010900060002000001080005010802000109010900060002000001080005010802000109010900060002000001080005010802000109010900060002000001080005010600000008000504060000010600000006000002000000030109010603030600000106000000060000020000000301060107090005050901050008050900050008040600000108020800050106020000000007060902090106000200000109000602000000050605050605000500060000020801080005010602000000000800090209010600020000010900060200000005060505060500050005000500080206000003090008000501060200000000000509020901060002000001090006020000000506050506050005000602000000000000080206040001000000000000000006020000000601060602000000000000080200020107000405060500060000000504060000010600000006000002000000030106080101050601000800000002080206000400050106000000060004000501080008030003080108050808080800010903050005000500050001050105060200000000000305070600000008000000050005000500050005000500060200000006010005060500060200000001040008010600040008000501090008010001060004000502060000010801050207000407000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000001090005070500060200000001090008010600040008000501090008010001060004000502060000040801050207000407040005060504000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000001000305070500060200000001000308010600040008000501090008010001060004000502060000000801050207000407040005060405050204000400040504000504000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000105060200000002010305070600000408000504060000010901090006000000010901060802080005000002010709000505050006020000000403080506050006020000000206000801060004000800050109000801000106000400050206000001080105020700040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206040001000000000000000006020000000800020602000000040300080200020107000405060500080006020000000200040507050006020000000200040801060004000800050109000801000106000400050206000004080105020700040005050400040900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206040001000000000000000006020000000800020602000000040300080200020107000405060500080006020000000300080507050006020000000300080801060004000800050109000801000106000400050206000009080105020700040005050400040904030409050004010400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206040001000000000000000006020000000800020602000000040300080200020107000405060500010506020000000302030507060000040800050406000002090109000600000001090106060000010803060200000002000805060500060200000003070008010600040008000501090008010001060004000502060000010801050207000403000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000003000405070500060200000003000408010600040008000501090008010001060004000502060000040801050207000403040005020500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000800060200000004010805070500060200000004010808010600040008000501090008010001060004000502060000090801050207000403040005020500040005020401050404050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060400010000000000000000060200000008000206020000000403000802000201070004050605000105060200000004030305070600000408000504060000000901090006000000010901060600000108030602000000020008050605000600000008000000050005000506050006000000060200000004040706020000000500000506050006020000000405010602000000050000050605000500080309000500080206000000080105010803050101040602000000040600050706000000090305000602000000050500050605000500060000000500080205010801010001050602000000050507050708010801080105010801010006020000000408070507000005000001060002000001050107000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009000004070000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000206000001060000080600000200000003010901060803080208010501080101000602000000040008050700000500000106000200000105010700000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000900000407000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020600000106000008060000020000000301090106010401050105060200000005040005070600000009030500060200000005050005060500060000010001060200000004070005060500060000010903050005000500050005000902090105000500050605000802080005040600000108010600000101060105060100010000000200030106060000020900000409000600000005020600020006000000020009000600010000010600020009000004080100010902080206000100010006020000000500080507080005010600000001090106080308000001010708050505060200000005000805060500080208000001060000010001080505050802010506020000000500080507090108020001050008020801010101050602000000050008050708020501080205050901060002000001090109000600000100010900060200000005000005060500050006020000000500060902090105000602000000050000050605000500090005060500060002000600040005010900080100010600040005020600000008010502090005060500060200000006010909010900050008000802010101050602000000050006050706000000080105050600000100010602000000060003050605000900050605000601000900000800060200000006020006000000030906000000000300000600060006000400050206000004030601000601000008000507060300000000000000000700000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000003050004010606030102000605000000080101040601000009020507080006030300000000000005010406010000000705070800060306090402000000070104060100000006050708000603070109000000000001040601000107000507080006030800050204070400010406010001000505070800060300030000000201070104060100010008050708000603000300080000060901040601000100000507080006030000070602000404010406010002090005070500060000000800000005000304010506010000090005070600000008000000050006010000000506010002000505060500060004000501090008010502060002000001060004000501080009010003090000030500030401050601000000020507060000000800000005000601000000000601000200060506050006000400050106000001060000000600000200000003090009010106080105020600020000010600040005010800090100030900000305000304010506010000000105070600000008000000050006010000000906010002000505060500060004000501060002000800080205020801090008010001080308010801050108010502060002000001090105000800050109000600020000010900080008030803060000000500080308010100010506010001030505070800080200010501080308020001050206000200000106010001010005060500050005000500050009000500090008010001090006000100010608000105060100010602050708000802000308000501060000010803060002000003060100010000000000030109010608010502060002000001090105000500050009020500050005000600040005010800090100030900000305000304010506010001070005070600000008000000050006010001000306000004080003050600000106000000060000020000000301060900060004040600020408000305090008010001090008030001030508000600020006000100080200010801090000040801000200010600040005010900080100010600040005020801080105020902090109000600020008040001080308030800080208040307050009040906050005000500050009010305010501050901050006010003090309000500050605000000050003040105060100010000050706000000080000000500060100000009060100030004050605000304010506010001000305070600000008000000050006010000000906010004040005060500030401050601000200060507060000000800000005000601000200000601000400000506050006000400050106000001060000000600000200000003080401060801050208010105010506000400080200010502060006000600020008020001080108010502090008020001080408010801050108010502060002000001090105000800050109000600020000010900080008030803060000000500080308010100010506010002060105070800080200010501080308020001050206000200000106010002040905060500050005000500050009000500090008010001090006000100010608000105060100020800050708000802000308000501060000010803060002000003060100010000000000030109010608010502060002000001090105000500050009040500050005000500050006000400050108000901000309000003050003040105060100020009050706000000080000000500060100020001060100050705050605000600040005010800080206000002080101010105060100020001050700000500060000000106080105020600020000010901050005000600040005010800090100030900000305000600000005040600000106000000060000020000000301060301050009000506050006000000050406000001060000000600000200000003010608010506050006000003080005040600000108010600000101060105060100010000000200030106060000020900000408000600010000010600020008000901000400020600020000010600040005010900080100010600040005020800090209010900080108010502060002000001080208000504060000010801060000010106010506010001000000020003010606000002090000040800010506010003080005070800060001000100060100030600050706010001000008000803050400040002080305020901060002000001090106010003080005060500080200010901090006000000050206000200060000000200090005000801050408010502090006000001000109000600020000010800080301010601000306000507080209000003060001000106080200010901050005000500050005000500080105060500060000050800050407030000000000000000000000000000000000000000000000000000000000000000000000000000000001090106060000010600000006000002000000030805010601070900050506000006080208000501060100030000090209010600020000010900060100050700050605000500060000070800050406000000010901060901010501050901090009010107090005050500050005060500060000020800050406000001080106000001010601050601000100000002000301060600000209000004080006000100000106000200080009010004000206000200000106000400050109000801000106000400050208000902090109000801080105020600020000010802080005040600000108010600000101060105060100010000000200030106060000020900000408000105060100030800050708000600010001000601000306000507060100010000080008030504000400020803050209010600020000010901060100030800050605000600000108000504060000010801060000010106010506010001000000020003010606000002090000040800060001000001060002000800090100040002060002000001060004000501090008010001060004000502080009020901090008010801050206000200000108020800050406000001080106000001010601050601000100000002000301060600000209000004080001050601000308000507080006000100010006010003060005070601000100000800080305040004000208030502090106000200000109010601000308000506050006000005080005040600000608000504060000010600000006000002000000030900090201060902090106000002060000000109060000010803010601050601000100000002000109000901010600040600020006000100080200010801090000040801000200010600040005010900080100010600040005020800090209010900080108010502060002000001080208000504060000010801060000010106010506010001000000020003010606000002090000040800010506010005060205070800060001000100060100050307050706010001000008000803050400040002080305020901060002000001090106010005060205060500080200010901090006000000050206000200060000000200090005000801050408010502090006000001000109000600020000010800080301010601000504050507080209000003060001000106080200010901050005000500050006000002090009030001050409010902050005000600000001060803050605000600000405040600000001060801050605000802080005040600000108010600000101060105060100010000000200030106060000020900000409000600000005020600020006000000020009000600010000010600020009000004080100010902080206000100010006010005000005070800050106000000010901060803080000010107080505050601000500000506050008020800000106000001000108050505080201050601000500000507090108020001050008020801010101050601000500000507080205010802050509010600020000010901090006000001000109000601000500010506050005000601000500080902090105000601000500000506050005000900050605000601000200030901090005000800080201010105060100050008050706000000080105050600000100010601000600020506050006010006050308010600040008000501090008010001060004000502060000010801050207000407000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060100080002050605000800060100060906050705000601000609060801060004000800050109000801000106000400050206000004080105020700040704000506050400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206010008000205060500080006010006000905070500060100060009080106000400080005010900080100010600040005020600000008010502070004070400050604050502040004000405040005040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060002000802000105020601000800020506050001050601000600070507060000040800050406000001090109000600000001090106080208000500000201070900050505000601000800000506050006010007030408010600040008000501090008010001060004000502060000010801050207000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060100080002050605000800060100070707050705000601000707070801060004000800050109000801000106000400050206000004080105020700040005050400040900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206010008000205060500080006010007000005070500060100070000080106000400080005010900080100010600040005020600000908010502070004000505040004090403040905000401040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060002000802000105020601000800020506050001050601000700030507060000040800050406000002090109000600000001090106060000010803060100060000050605000601000801000801060004000800050109000801000106000400050206000001080105020700040300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600020008020001050206010008000205060500080006010008050305070500060100080503080106000400080005010900080100010600040005020600000408010502070004030400050205000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060002000802000105020601000800020506050008000601000809060507050006010008090608010600040008000501090008010001060004000502060000090801050207000403040005020500040005020401050404050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000200080200010502060100080002050605000105060100000800050706000004080005040600000009010900060000000109010606000001080306010006000005060500050005060500060000000601000800000601000909000506050006010008000406010009090005060500050008030900050008020600000008010501080305010104060100080000050706000000090305000601000908070506050005000600000005000802050108010100010506010009080205070801080108010501080101000601000800060507000005000001060002000001050106000008060000020000090000040600000806000002000000020700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001090106080308020801050108010100060100090306050700000500000106000200000105010600000806000002000009000004060000080600000200000002070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000109010601040105010506010009070005070600000009030500060100090807050605000600000100010601000800010506050006000001090305000500050005000500090209010500050005060500060002000600040005010900080100010600040005020600000008010502090005060000000106050602070007000702030005080200000002000208000003000107000303040200000700040406000006060000030000070201030504000600050800020009060000070400000704050506000008000000020900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000000008464e4d4130303030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a46414e4e4945204d41450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035553440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000143000000000000000000000000000000000000000000000000000000000000001ca073bfb42d16f220df5a00329ff256e27aa029f81ac982dfbf7fa7f96212d78d59a011b5e12f3b83e4eed3f4f68990f05772c54cab7c9a45473ea674791bca78904d


From: Richard Moore [email protected] Sent: Friday, April 13, 2018 2:33 PM To: ethers-io/ethers.js Cc: michaelerose; Author Subject: Re: [ethers-io/ethers.js] Signing transactions send to Quorum permissioned blockchain (#162)

Ok... Hopefully we're getting close. :)

So, can I bug you for one more thing, which is the signed transaction from Web3, which was working?

The signed transaction looks fine and has the from address 0x37FF45Fe9d23fC7867Fd72631F9EDF7021D5be8e.

I've never used a Quorum permission network, but a few questions:

  • Are only specific from addresses allowed to send?
  • Is the gas price allowed to be 0?

Once you send me a signed transaction from Web3, I can compare the two.

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ethers-io/ethers.js/issues/162#issuecomment-381224263, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAl4TG3AoVrJJl1gWegoIF5dpN0RW_Dks5toO-UgaJpZM4TSakI.

michaelerose avatar Apr 14 '18 03:04 michaelerose

I just parsed those two transactions, and there is only one difference:

ethersResult = { nonce: 0,
  gasPrice: BigNumber { _bn: <BN: 0> },
  gasLimit: BigNumber { _bn: <BN: 3473bc1> },
  value: BigNumber { _bn: <BN: 0> },
  data: '0x060 .... ',
  v: 209,
  r: '0x75547b5c19821a43aee4400776d49a6bacff7f58dc625eacbe2af11628b0b2c7',
  s: '0x569b40213919d1775c458453ff9fd1a1cba5eb51fe0785c9dac8968bc47c47',
  chainId: 87,
  from: '0x8B3f6dF4c1bf085C28B332E3D2E1992630F154E1' }
var web3Response = { nonce: 0,
  gasPrice: BigNumber { _bn: <BN: 0> },
  gasLimit: BigNumber { _bn: <BN: 3473bc1> },
  value: BigNumber { _bn: <BN: 0> },
  data: '0x060 ... ',
  v: 28,
  r: '0x73bfb42d16f220df5a00329ff256e27aa029f81ac982dfbf7fa7f96212d78d59',
  s: '0x11b5e12f3b83e4eed3f4f68990f05772c54cab7c9a45473ea674791bca78904d',
  chainId: 0,
  from: '0x8B3f6dF4c1bf085C28B332E3D2E1992630F154E1' }

The chain ID in the Web3 version has disabled EIP-155, and is not specifying a network. How have you configured the network for your Quorum permissioned blockchain? And does it support EIP-155?

If you need to disable EIP-155, you can use a providers.networks.unspecified, but keep in mind that these transactions will be replayable on any network, so make sure you use a private key unique to your private network.

There may also be somewhere else in your Quorum config you need to specify the chain ID or network ID. But this is likely why you are getting "Invalid Sender".

ricmoo avatar Apr 14 '18 16:04 ricmoo

Richard -

I modified quorum-maker to use the attached genesis file ... still getting "invalid sender" error with [email protected]

  • Michael

From: Richard Moore [email protected] Sent: Saturday, April 14, 2018 12:17 PM To: ethers-io/ethers.js Cc: michaelerose; Author Subject: Re: [ethers-io/ethers.js] Signing transactions send to Quorum permissioned blockchain (#162)

I just parsed those two transactions, and there is only one difference:

ethersResult = { nonce: 0, gasPrice: BigNumber { _bn: <BN: 0> }, gasLimit: BigNumber { _bn: <BN: 3473bc1> }, value: BigNumber { _bn: <BN: 0> }, data: '0x060 .... ', v: 209, r: '0x75547b5c19821a43aee4400776d49a6bacff7f58dc625eacbe2af11628b0b2c7', s: '0x569b40213919d1775c458453ff9fd1a1cba5eb51fe0785c9dac8968bc47c47', chainId: 87, from: '0x8B3f6dF4c1bf085C28B332E3D2E1992630F154E1' }

var web3Response = { nonce: 0, gasPrice: BigNumber { _bn: <BN: 0> }, gasLimit: BigNumber { _bn: <BN: 3473bc1> }, value: BigNumber { _bn: <BN: 0> }, data: '0x060 ... ', v: 28, r: '0x73bfb42d16f220df5a00329ff256e27aa029f81ac982dfbf7fa7f96212d78d59', s: '0x11b5e12f3b83e4eed3f4f68990f05772c54cab7c9a45473ea674791bca78904d', chainId: 0, from: '0x8B3f6dF4c1bf085C28B332E3D2E1992630F154E1' }

The chain ID in the Web3 version has disabled EIP-155, and is not specifying a network. How have you configured the network for your Quorum permissioned blockchain? And does it support EIP-155?

If you need to disable EIP-155, you can use a providers.networks.unspecified, but keep in mind that these transactions will be replayable on any network, so make sure you use a private key unique to your private network.

There may also be somewhere else in your Quorum config you need to specify the chain ID or network ID. But this is likely why you are getting "Invalid Sender".

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ethers-io/ethers.js/issues/162#issuecomment-381340536, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAl4QUZiN4oRMdqUEr_Z8hx07rTxoGPks5toiEFgaJpZM4TSakI.

michaelerose avatar May 02 '18 18:05 michaelerose

FYI, I've been using Ethers.js to send transactions to Quorum 0.x and 1.x since last year. I use an "unspecified" network for it to work

Quorum just uses Geth so the configuration of the chain ID and EIP-155 support is the same as normal Geth

naddison36 avatar May 06 '18 13:05 naddison36

Nick -

Thanks for the advice ... I'll try leaving the network unspecified

Michael


From: Nick Addison [email protected] Sent: Sunday, May 6, 2018 9:33 AM To: ethers-io/ethers.js Cc: michaelerose; Author Subject: Re: [ethers-io/ethers.js] Signing transactions send to Quorum permissioned blockchain (#162)

FYI, I've been using Ethers.js to send transactions to Quorum 0.x and 1.x since last year. I use an "unspecified" network for it to work

Quorum just uses Geth so the configuration of the chain ID and EIP-155 support is the same as normal Geth

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ethers-io/ethers.js/issues/162#issuecomment-386879772, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAl4YEhpmn121BMgy90g-laf0amvBS9ks5tvvucgaJpZM4TSakI.

michaelerose avatar May 07 '18 02:05 michaelerose

Is this resolved now? I see the other ticket has been closed.

ricmoo avatar Jun 21 '18 01:06 ricmoo

Richard -

No, I'm still using the web3js workaround. Haven't looked at this for a while, but getting back to it today. One issue that will come up soon is whether ethers.js can handle

the additional fields required for permissioned transactions using Quorum. I'll write this up in detail and send it to you by Friday afternoon.

  • Michael

From: Richard Moore [email protected] Sent: Wednesday, June 20, 2018 9:35 PM To: ethers-io/ethers.js Cc: michaelerose; Author Subject: Re: [ethers-io/ethers.js] Signing transactions send to Quorum permissioned blockchain (#162)

Is this resolved now? I see the other ticket has been closed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ethers-io/ethers.js/issues/162#issuecomment-398948538, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAl4TbkcnSADJycNeKvWgN6dlXe3g2Vks5t-vhHgaJpZM4TSakI.

michaelerose avatar Jun 21 '18 16:06 michaelerose

Richard -

I'm just using chainId = 0 to avoid this problem for now and to stop depending on web3js.

Let's close the issue since there are other ways to plug the resulting security hole.

I seriously doubt this is an ethers.js problem, but I have noticed that the gas estimates for large transactions can be a huge multiple of the gas actually used. This occurs

once the underlying source code reaches a certain level of size and complexity. My work-around is simply to cap the gas estimate at the block gas limit so the transaction can proceed. My best guess is that this is a Solidity/EVM issue.

Thanks again for your support and writing a really good library

  • Michael

From: Richard Moore [email protected] Sent: Wednesday, June 20, 2018 9:35 PM To: ethers-io/ethers.js Cc: michaelerose; Author Subject: Re: [ethers-io/ethers.js] Signing transactions send to Quorum permissioned blockchain (#162)

Is this resolved now? I see the other ticket has been closed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ethers-io/ethers.js/issues/162#issuecomment-398948538, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAl4TbkcnSADJycNeKvWgN6dlXe3g2Vks5t-vhHgaJpZM4TSakI.

michaelerose avatar Jun 27 '18 01:06 michaelerose

Sure, I'll close this issue then, but if you can find documentation on how Quorum differs from standard Ethereum, I'd love to know. If it is just a matter of adding a new chain ID to the networks, I'd like to add support. :)

ricmoo avatar Jul 03 '18 20:07 ricmoo

Thanks ... I'll research this


From: Richard Moore [email protected] Sent: Tuesday, July 3, 2018 4:54 PM To: ethers-io/ethers.js Cc: michaelerose; Author Subject: Re: [ethers-io/ethers.js] Signing transactions send to Quorum permissioned blockchain (#162)

Sure, I'll close this issue then, but if you can find documentation on how Quorum differs from standard Ethereum, I'd love to know. If it is just a matter of adding a new chain ID to the networks, I'd like to add support. :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ethers-io/ethers.js/issues/162#issuecomment-402289069, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADAl4VfqhQhR6WZuCMi3YRRPmVO_1iv7ks5uC9oHgaJpZM4TSakI.

michaelerose avatar Jul 03 '18 21:07 michaelerose