core.classes.erc_20_signature_minting
ERC20SignatureMinting Objects
class ERC20SignatureMinting()
mint
def mint(signed_payload: SignedPayload20) -> TxReceipt
Mint a token with the given payload
Arguments:
signed_payload
: Signed payload
Returns:
transaction result with the token ID of the minted token
mint_batch
def mint_batch(signed_payloads: List[SignedPayload20]) -> TxReceipt
Mint a batch of tokens with the given payloads
Arguments:
signed_payloads
: Signed payloads
Returns:
transaction results with the token IDs of the minted tokens
verify
def verify(signed_payload: SignedPayload20) -> bool
Verify the signature of the given payload
Arguments:
signed_payload
: Signed payload
Returns:
True if the signature is valid, False otherwise
generate
def generate(mint_request: PayloadToSign20) -> SignedPayload20
Generate a signed payload from the given payload
Arguments:
mint_request
: Payload to sign
Returns:
Signed payload
generate_batch
def generate_batch(
payloads_to_sign: List[PayloadToSign20]) -> List[SignedPayload20]
Generate a batch of signed payloads from the given payloads
Arguments:
payloads_to_sign
: Payloads to sign
Returns:
Signed payloads