Skip to main content

Eip712MintERC1155TypedData

primaryTypestring

Possible values: [MintData]

domain object
namestring

Name of the signing domain

Example: BaseToken
versionstring

The current version of the signing domain

Example: 1.0.0
chainIdnumber

Numeric identifier of the blockchain

Example: 137
verifyingContractstring

Address of the contract on the blockchain that verifies the signature

Example: 0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC
types object
EIP712Domain object[]
  • Array [
  • namestring
    typestring
  • ]
  • MintData object[]
  • Array [
  • namestring
    typestring
  • ]
  • ArweaveReferences object[]
  • Array [
  • namestring
    typestring
  • ]
  • PhysicalGoldMetadata object[]
  • Array [
  • namestring
    typestring
  • ]
  • message object
    tostring

    Blockchain address to mint tokens to

    Example: 0x1234567890123456789012345678901234567890
    amountstring

    Amount of tokens to mint (uint256)

    Example: 1000000000000000000
    docTypenumber

    Document type identifier (uint8)

    Example: 1
    contentHashstring

    Content hash of the document (bytes32)

    Example: 0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890
    arweaveRefs object

    Arweave references for metadata and documents

    metadataUristring
    Example: ar://metadata-tx-id
    certificateUristring
    Example: ar://certificate-tx-id
    additionalDocsUristring
    Example: ar://additional-docs-tx-id
    issuedAtnumber

    Timestamp when the token was issued (uint64)

    Example: 1706515200
    versionnumber

    Version number (uint32)

    Example: 1
    noncestring

    Unique nonce to prevent replay attacks (uint256)

    Example: 1
    deadlinestring

    Deadline timestamp for the signature (uint256)

    Example: 1706601600
    physicalMetadata object

    Physical gold metadata

    serialNumberstring

    Serial number of the physical gold (bytes32)

    Example: 0x1234567890123456789012345678901234567890123456789012345678901234
    refinerystring

    Refinery identifier (bytes32)

    Example: 0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890
    puritynumber

    Purity of the gold (uint16)

    Example: 9999
    totalPhysicalWeightstring

    Total physical weight in grams (uint256)

    Example: 1000000
    mintedDatenumber

    Date when the gold was minted (uint64)

    Example: 1706515200
    lbmaCertNumberstring

    LBMA certification number (bytes32)

    Example: 0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321
    Eip712MintERC1155TypedData
    {
    "primaryType": "MintData",
    "domain": {
    "name": "BaseToken",
    "version": "1.0.0",
    "chainId": 137,
    "verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
    },
    "types": {
    "EIP712Domain": [
    {
    "name": "string",
    "type": "string"
    }
    ],
    "MintData": [
    {
    "name": "string",
    "type": "string"
    }
    ],
    "ArweaveReferences": [
    {
    "name": "string",
    "type": "string"
    }
    ],
    "PhysicalGoldMetadata": [
    {
    "name": "string",
    "type": "string"
    }
    ]
    },
    "message": {
    "to": "0x1234567890123456789012345678901234567890",
    "amount": "1000000000000000000",
    "docType": 1,
    "contentHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
    "arweaveRefs": {
    "metadataUri": "ar://metadata-tx-id",
    "certificateUri": "ar://certificate-tx-id",
    "additionalDocsUri": "ar://additional-docs-tx-id"
    },
    "issuedAt": 1706515200,
    "version": 1,
    "nonce": "1",
    "deadline": "1706601600",
    "physicalMetadata": {
    "serialNumber": "0x1234567890123456789012345678901234567890123456789012345678901234",
    "refinery": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
    "purity": 9999,
    "totalPhysicalWeight": "1000000",
    "mintedDate": 1706515200,
    "lbmaCertNumber": "0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321"
    }
    }
    }