Type alias TokenUpdatePayload

TokenUpdatePayload: {
    operations: Type;
    tokenId: Type;
}

The payload for a token update transaction. Token ID and contents of the "operations" byte array is a CBOR encoding of the update type. (e.g. "mint") and the associated update details.

Example

const payload = {
tokenId: TokenId.fromString('PLT'),
operations: Cbor.encode([{mint: { amount } }]),
};

Type declaration

  • operations: Type

    The CBOR encoded operations

    Example

    const operations = Cbor.encode([{mint: { amount } }]); // plt mint payload
    
  • tokenId: Type

    The token id identifying the token to perform the list of operations on

Generated using TypeDoc