Usage

Returns

DeferredTokenIntentWithSignature

{ 
 author: Address,
 signature: Hex,
  intent: {
    domain: {
      name: 'Transmissions'
      version: '1'
      chainId: number
      verifyingContract: Address
    }
    types: {
      DeferredTokenPermission: [
        { name: 'uri'; type: 'string' },
        { name: 'maxSupply'; type: 'uint256' },
        { name: 'deadline'; type: 'uint256' },
        { name: 'nonce'; type: 'bytes32' },
      ]
    }
    primaryType: 'DeferredTokenPermission'
    message: {
      uri: string
      maxSupply: bigint
      deadline: bigint
      nonce: Hex
    }
  }
}

Parameters

channelAddress (intent creation)

  • type: string

The target channel address

const intent = uplinkClient.createDeferredTokenIntent({
  channelAddress: '0x1234567890123456789012345678901234567890',
  ...
})

uri (intent creation)

  • type: string

The metadata URI of the token

const intent = uplinkClient.createDeferredTokenIntent({
  uri: 'new token uri',
  ...
})

maxSupply (intent creation)

  • type: bigint

The maximum supply of the token

const intent = uplinkClient.createDeferredTokenIntent({
  maxSupply: 100n,
  ...
})

intent (signing)

  • type: DeferredTokenIntent

The unsigned token intent

const signedIntent = uplinkClient.signDeferredTokenIntent(intent)