ERC1155ContractView

Class in @sentio/sdk/eth/builtin › erc1155

Defined in @sentio/sdk/eth/builtin › erc1155

Extends

Constructors

Constructor

new ERC1155ContractView(contract: ERC1155): ERC1155ContractView;

Parameters

ParameterType
contractERC1155

Returns

ERC1155ContractView

Overrides

ContractView.constructor

Properties

PropertyType
callStaticobject
callStatic.contractERC1155
callStatic.safeBatchTransferFromPromise<void>
callStatic.safeTransferFromPromise<void>
callStatic.setApprovalForAllPromise<void>
encodeCallobject
encodeCall.balanceOfEthCallParam
encodeCall.balanceOfBatchEthCallParam
encodeCall.isApprovedForAllEthCallParam
encodeCall.safeBatchTransferFromEthCallParam
encodeCall.safeTransferFromEthCallParam
encodeCall.setApprovalForAllEthCallParam
encodeCall.supportsInterfaceEthCallParam
encodeCall.uriEthCallParam

Accessors

provider

Get Signature

get provider(): Provider;
Returns

Provider

Inherited from

ContractView.provider


rawContract

Get Signature

get rawContract(): TContract;
Returns

TContract

Inherited from

ContractView.rawContract

Methods

balanceOf()

balanceOf(
   account: string, 
   id: BigNumberish, 
   overrides?: Overrides, 
   preparedData?: PreparedData, 
   ethCallContext?: EthCallContext
): Promise<bigint>;

Parameters

ParameterType
accountstring
idBigNumberish
overrides?Overrides
preparedData?PreparedData
ethCallContext?EthCallContext

Returns

Promise<bigint>


balanceOfBatch()

balanceOfBatch(
   accounts: string[], 
   ids: BigNumberish[], 
   overrides?: Overrides, 
   preparedData?: PreparedData, 
   ethCallContext?: EthCallContext
): Promise<bigint[]>;

Parameters

ParameterType
accountsstring[]
idsBigNumberish[]
overrides?Overrides
preparedData?PreparedData
ethCallContext?EthCallContext

Returns

Promise<bigint[]>


isApprovedForAll()

isApprovedForAll(
   account: string, 
   operator: string, 
   overrides?: Overrides, 
   preparedData?: PreparedData, 
   ethCallContext?: EthCallContext
): Promise<boolean>;

Parameters

ParameterType
accountstring
operatorstring
overrides?Overrides
preparedData?PreparedData
ethCallContext?EthCallContext

Returns

Promise<boolean>


supportsInterface()

supportsInterface(
   interfaceId: BytesLike, 
   overrides?: Overrides, 
   preparedData?: PreparedData, 
   ethCallContext?: EthCallContext
): Promise<boolean>;

Parameters

ParameterType
interfaceIdBytesLike
overrides?Overrides
preparedData?PreparedData
ethCallContext?EthCallContext

Returns

Promise<boolean>


uri()

uri(
   id: BigNumberish, 
   overrides?: Overrides, 
   preparedData?: PreparedData, 
   ethCallContext?: EthCallContext
): Promise<string>;

Parameters

ParameterType
idBigNumberish
overrides?Overrides
preparedData?PreparedData
ethCallContext?EthCallContext

Returns

Promise<string>

On this page