Skip to main content

Reference

Interfaces, signatures, parameters, and generated references.

Lookup friendly
TOC available

IERC6909Claims

Interface for claims over a contract balance, wrapped as a ERC6909

Functions​

balanceOf​

Owner balance of an id.

function balanceOf(address owner, uint256 id) external view returns (uint256 amount);

Parameters

NameTypeDescription
owneraddressThe address of the owner.
iduint256The id of the token.

Returns

NameTypeDescription
amountuint256The balance of the token.

allowance​

Spender allowance of an id.

function allowance(address owner, address spender, uint256 id) external view returns (uint256 amount);

Parameters

NameTypeDescription
owneraddressThe address of the owner.
spenderaddressThe address of the spender.
iduint256The id of the token.

Returns

NameTypeDescription
amountuint256The allowance of the token.

isOperator​

Checks if a spender is approved by an owner as an operator

function isOperator(address owner, address spender) external view returns (bool approved);

Parameters

NameTypeDescription
owneraddressThe address of the owner.
spenderaddressThe address of the spender.

Returns

NameTypeDescription
approvedboolThe approval status.

transfer​

Transfers an amount of an id from the caller to a receiver.

function transfer(address receiver, uint256 id, uint256 amount) external returns (bool);

Parameters

NameTypeDescription
receiveraddressThe address of the receiver.
iduint256The id of the token.
amountuint256The amount of the token.

Returns

NameTypeDescription
<none>boolbool True, always, unless the function reverts

transferFrom​

Transfers an amount of an id from a sender to a receiver.

function transferFrom(address sender, address receiver, uint256 id, uint256 amount) external returns (bool);

Parameters

NameTypeDescription
senderaddressThe address of the sender.
receiveraddressThe address of the receiver.
iduint256The id of the token.
amountuint256The amount of the token.

Returns

NameTypeDescription
<none>boolbool True, always, unless the function reverts

approve​

Approves an amount of an id to a spender.

function approve(address spender, uint256 id, uint256 amount) external returns (bool);

Parameters

NameTypeDescription
spenderaddressThe address of the spender.
iduint256The id of the token.
amountuint256The amount of the token.

Returns

NameTypeDescription
<none>boolbool True, always

setOperator​

Sets or removes an operator for the caller.

function setOperator(address operator, bool approved) external returns (bool);

Parameters

NameTypeDescription
operatoraddressThe address of the operator.
approvedboolThe approval status.

Returns

NameTypeDescription
<none>boolbool True, always

Events​

OperatorSet​

event OperatorSet(address indexed owner, address indexed operator, bool approved);

Approval​

event Approval(address indexed owner, address indexed spender, uint256 indexed id, uint256 amount);

Transfer​

event Transfer(address caller, address indexed from, address indexed to, uint256 indexed id, uint256 amount);