cryptnox-pos 1.0.0
Standalone USDC payment terminal firmware (ESP32 + Cryptnox smart card)
Loading...
Searching...
No Matches
eth_receipt_expect_t Struct Reference

What a receipt must show for the payment to count — see eth_json_receipt_check. More...

#include <eth_json.h>

Public Attributes

const char * tx_hash
const uint8_t * to
const uint8_t * payee
uint64_t amount

Detailed Description

What a receipt must show for the payment to count — see eth_json_receipt_check.

Definition at line 40 of file eth_json.h.

Member Data Documentation

◆ amount

uint64_t eth_receipt_expect_t::amount

ERC-20: Transfer value, base units.

Definition at line 46 of file eth_json.h.

Referenced by eth_json_receipt_check().

◆ payee

const uint8_t* eth_receipt_expect_t::payee

ERC-20: Transfer recipient; NULL native.

Definition at line 45 of file eth_json.h.

Referenced by eth_json_receipt_check().

◆ to

const uint8_t* eth_receipt_expect_t::to

20 bytes: the tx's to — the token contract, or the payee for a native transfer.

Definition at line 43 of file eth_json.h.

Referenced by eth_json_receipt_check().

◆ tx_hash

const char* eth_receipt_expect_t::tx_hash

"0x" + 64 hex, hashed on the device from the signed bytes — never the node's answer.

Definition at line 41 of file eth_json.h.

Referenced by eth_json_receipt_check(), and eth_rpc_get_tx_receipt().


The documentation for this struct was generated from the following file: