Eos: Any way to get the signature of current transaction inside the smart contract?

Created on 31 Aug 2018  路  6Comments  路  Source: EOSIO/eos

I would like to get the transaction signature that the smart contract is executing, which looks like "SIG_K1_......". Thanks.

question

Most helpful comment

@shwuhk Have you found the way to get signature?

All 6 comments

The read_transaction function can get the entire transaction in serialized form. You can deserialize it and pull out any information. You'll have to create equivalents to chain's transaction-related structures to do the deserialization.

That seems very complicated. Is there any other way? I just need the signature....

There鈥檚 not. It鈥檚 complicated because it鈥檚 a rare need.

Understood. Thanks for your help. I would try the other approach then.

@shwuhk Have you found the way to get signature?

@ohJohanZ guess not

Was this page helpful?
0 / 5 - 0 ratings