Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IERC2981

Interface of the ERC2981 standard.

Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981

pub trait IERC2981<TState>

Trait functions

royalty_info

Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of exchange. The royalty amount is denominated and should be paid in that same unit of exchange.

Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981::royalty_info

fn royalty_info(self: @TState, token_id: u256, sale_price: u256) -> (ContractAddress, u256)