Structs§
- Cash
Account - A cash account registration
- Payload
- A cash account playload. One registration can contain multiple payloads.
Constants§
- CASHACC_
ERR_ INVALID_ ACCOUNT_ NAME - CASHACC_
ERR_ MALLOC_ FAILED - Parsing failed to to out of memory.
- CASHACC_
ERR_ NO_ PUSHDATA - PUSHDATA op code missing
- CASHACC_
ERR_ PUSHDATA_ ERROR - PUSHDATA requested more data parsed than remains in OP_RETURN array.
- CASHACC_
ERR_ TOO_ FEW_ PARTS - Registration contains too few registration parts. For example, it may have a account name, but no payloads.
- CASHACC_
ERR_ WRONG_ PREFIX - OP_RETURN does not have the correct cashaccount prefix.
- CASHACC_
PAYMENT_ KEYHASH - Known (and valid) payment types
- CASHACC_
PAYMENT_ PAYMENTCODE - CASHACC_
PAYMENT_ SCRIPTHASH - CASHACC_
PAYMENT_ STEALTHKEYS - CASHACC_
PAYMENT_ TOKEN_ KEYHASH - CASHACC_
PAYMENT_ TOKEN_ PAYMENTCODE - CASHACC_
PAYMENT_ TOKEN_ SCRIPTHASH - CASHACC_
PAYMENT_ TOKEN_ STEALTHKEYS
Functions§
- cashacc_
account_ ⚠clear - Clear name/payloads from CashAccount. The struct can be reused after calling this.
- cashacc_
account_ ⚠destroy - Free all memory, including payloads.
- cashacc_
account_ ⚠init - Allocate the cash account result data. Free using cashacc_account_destroy.
- cashacc_
check_ ⚠name - Check if string is a valid cashaccount name (used in cashacc_parse_opreturn)
- cashacc_
check_ ⚠payload_ type - Check if payload type is a know type. Paylods with unknown types will be ignored.
- cashacc_
check_ ⚠prefix - Check if opreturn has the correct cashaccount prefix (used in cashacc_parse_opreturn)
- cashacc_
parse_ ⚠opreturn - Parse CashAccount from an OP_RETURN script \param opreturn Pointer to script \param opreturn_len Length of the script \param store_payload If payload is to be stored. If you just need to verify that script contains a cashaccount and get the name, you can set to false for increased performance. \param account The variable where the result is stored \return Number of payloads found, or error code on error