CRYPTO NEWS

How to get state of transaction from ethereum blockchain via an API

enter image description here How to get state of transaction from ethereum blockchain via an API

is there any API to fetch the State of the transaction

Why would you use a signed message to verify the sender?

In the Ghost contract they have: function mint(uint8 quantity, bytes calldata signature) public payable callerIsUser { require(DA_ACTIVE == true, "DA isnt active"); if (!directMintAllowed) { require( daSigner == keccak256( abi.encodePacked( "x19Ethereum Signed Message:n32", bytes32(uint256(uint160(msg.sender))) ) ).recover(signature), "Signer address mismatch." ); } … } I feel like I’m missing something. Isn’t this equivalent: function mint(uint8 quantity)::Listen

In the Ghost contract they have:

    function mint(uint8 quantity, bytes calldata signature)         public         payable         callerIsUser     {         require(DA_ACTIVE == true, "DA isnt active");         if (!directMintAllowed) {             require(                 daSigner ==                     keccak256(                         abi.encodePacked(                             "x19Ethereum Signed Message:n32",                             bytes32(uint256(uint160(msg.sender)))                         )                     ).recover(signature),                 "Signer address mismatch."             );         }         ...     } 

I feel like I’m missing something. Isn’t this equivalent:

    function mint(uint8 quantity)         public         payable         callerIsUser     {         require(DA_ACTIVE == true, "DA isnt active");         if (!directMintAllowed) {             require(daSigner == msg.sender, "Signer address mismatch.");         }         ...     } 

What is the value in adding a signed message check here?

How to get state of transaction from ethereum blockchain via an API

Shopping cart
There are no products in the cart!
Continue shopping
0