cheqd-nodeto provide an implementation of payments using CHEQ tokens using a well-understood SSI protocol.
~payment_receiptin requests, that can be used to pay using tokens for credential issuance.
details.idfield contains an invoice number that unambiguously identifies a credential for which payment is requested. When paying, this value should be placed in
memofield for the cheqd payment transaction.
payeeIdfield contains a cheqd account address in the correct format for cheqd network.
cheqd_ledger::bank::build_msg_send(from_account, to_account, amount_for_transfer, denom)
from_account: The prospective credential holder's cheqd account address
to_account: Same as
payeeIdfrom the Payment Request
amount_for_transfer: Price of credential issuance defined as
details.total.amount.valuefrom the Payment Request
denom: Defined in
details.total.amount.currencyfrom the Payment Request
cheqd_ledger::auth::build_tx(pool_alias, pub_key, builded_request, account_number, account_sequence, max_gas, max_coin_amount, denom, timeout_height, memo)
memo: This should be the same as
details.idfrom the Payment Request
cheqd_keys::sign(wallet_handle, key_alias, tx).
hash: Transaction hash
height: Ledger height
request_idshould be the same as
details.idfrom Payment Request and
memofrom Payment Transaction.
transaction_id. It allows the Issuer to:
transaction_idfrom previous steps.
memofield from received transaction contains the correct