Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ERC1155Standard

Hierarchy

  • Model<ERC1155StandardMethods>
    • ERC1155Standard

Implements

Index

Constructors

Properties

_contract: Web3Contract<ERC1155StandardMethods, any>
abi: AbiItem[]
contractAddress?: string

Accessors

  • get account(): Account
  • Returns the Account associated with this connection

    Returns Account

  • get web3(): default
  • Returns the Web3 class assigned to this connection

    Returns default

Methods

  • balanceOf(account: string, id: number): Promise<number>
  • balanceOfBatch(accounts: string[], ids: number[]): Promise<number[]>
  • connect(): Promise<boolean>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt<any>>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt<any>>

  • deployJsonAbi(uri: string): Promise<TransactionReceipt<any>>
  • getApprovalForAllEvents(filter: PastEventOptions): Promise<XEvents<ApprovalForAllEvent>[]>
  • getTransferBatchEvents(filter: PastEventOptions): Promise<XEvents<TransferBatchEvent>[]>
  • getTransferSingleEvents(filter: PastEventOptions): Promise<XEvents<TransferSingleEvent>[]>
  • getURIEvents(filter: PastEventOptions): Promise<XEvents<URIEvent>[]>
  • isApprovedForAll(account: string, operator: string): Promise<boolean>
  • loadAbi(): void
  • loadContract(): void
  • mint(to: string, tokenId: number, amount: number, data: string): Promise<TransactionReceipt<any>>
  • mintBatch(to: string, tokenIds: number[], amounts: number[], data: string): Promise<TransactionReceipt<any>>
  • safeBatchTransferFrom(from: string, to: string, ids: number[], amounts: number[], data: string): Promise<TransactionReceipt<any>>
  • safeTransferFrom(from: string, to: string, id: number, amount: number, data: string): Promise<TransactionReceipt<any>>
  • sendTx(method: ContractSendMethod, value?: any): Promise<TransactionReceipt<any>>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any

    Returns Promise<TransactionReceipt<any>>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, __namedParameters?: Partial<Web3ConnectionOptions>): Promise<TransactionReceipt<any>>
  • setApprovalForAll(operator: string, approved: boolean): Promise<TransactionReceipt<any>>
  • setURI(uri: string): Promise<TransactionReceipt<any>>
  • start(): Promise<void>
  • supportsInterface(interfaceId: string): Promise<boolean>
  • uri(v1: number): Promise<string>

Generated using TypeDoc