0xcalldata

ERC-1155 function

uri(uint256)

Returns the metadata URI template for an ERC-1155 token ID.

Selector
0x0e89341c
Mutability
view

Generate uri calldata

Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.

uint256
calldata36 bytes
sel0x0e89341c
uri(uint256)
0x00000000000000000000000000000000000000000000000000000000000000002a
id · uint256 =42

How uri works

A returned URI may contain the {id} placeholder. Clients replace it with the token ID as a lowercase, zero-padded 64-character hexadecimal value without a 0x prefix.

Parameters

NameSolidity typeMeaning
iduint256Token type whose metadata URI should be queried.

Return value

The metadata URI or URI template as a string.

string result

Return data comes back after execution and is not included in the calldata above.

View all ERC-1155 functions →