Protected Optional_accountProtected_requestProtected_subscriptionProtected Optional_walletReadonlyprovidersStatic OptionalgivenStatic ReadonlyprovidersThe blockHeaderTimeout is used over socket-based connections. This option defines the amount seconds it should wait for 'newBlockHeaders' event before falling back to polling to fetch transaction receipt.
Default is 10 seconds.
Will set the blockHeaderTimeout
The contractDataInputFill options property will allow you to set the hash of the method signature and encoded parameters to the property
either data, input or both within your contract.
This will affect the contracts send, call and estimateGas methods
Default is data.
Will set the contractDataInputFill
Will return the current provider. (The same as provider)
Returns the current provider
Will set the current provider. (The same as provider)
SupportedProviders The provider to set
This default address is used as the default from property, if no from property is specified in for the following methods:
Will set the default account.
The default block is used for certain methods. You can override it by passing in the defaultBlock as last parameter. The default value is "latest".
Will set the default block.
"earliest" - String: The genesis block"latest" - String: The latest block (current head of the blockchain)"pending" - String: The currently mined block (including pending transactions)"finalized" - String: (For POS networks) The finalized block is one which has been accepted as canonical by greater than 2/3 of validators"safe" - String: (For POS networks) The safe head block is one which under normal network conditions, is expected to be included in the canonical chain. Under normal network conditions the safe head and the actual tip of the chain will be equivalent (with safe head trailing only by a few seconds). Safe heads will be less likely to be reorged than the proof of work network`s latest blocks.Will get the default common property The default common property does contain the following Common object:
customChain - Object: The custom chain properties
name - string: (optional) The name of the chainnetworkId - number: Network ID of the custom chainchainId - number: Chain ID of the custom chainbaseChain - string: (optional) mainnet, goerli, kovan, rinkeby, or ropstenhardfork - string: (optional) chainstart, homestead, dao, tangerineWhistle, spuriousDragon, byzantium, constantinople, petersburg, istanbul, berlin, or london
Default is undefined.Will set the default common property
Will return the default hardfork. Default is london
The default hardfork property can be one of the following:
chainstarthomesteaddaotangerineWhistlespuriousDragonbyzantiumconstantinoplepetersburgistanbulberlinlondonWill set the default hardfork.
The enableExperimentalFeatures is used to enable trying new experimental features that are still not fully implemented or not fully tested or still have some related issues.
Default is false for every feature.
Will set the enableExperimentalFeatures
Will return the givenProvider if available.
When using web3.js in an Ethereum compatible browser, it will set with the current native provider by that browser. Will return the given provider by the (browser) environment, otherwise undefined.
The handleRevert options property returns the revert reason string if enabled for the following methods:
false.Note: At the moment handleRevert is only supported for sendTransaction and not for sendSignedTransaction
Will set the handleRevert
Will return the current provider.
Returns the current provider
Will set the current provider.
The provider to set
Accepted providers are of type SupportedProviders
Will return the current subscriptionManager (Web3SubscriptionManager)
The transactionBlockTimeout is used over socket-based connections. This option defines the amount of new blocks it should wait until the first confirmation happens, otherwise the PromiEvent rejects with a timeout error.
Default is 50.
Will set the transactionBlockTimeout.
This defines the number of blocks it requires until a transaction is considered confirmed.
Default is 24.
Will set the transactionConfirmationBlocks.
Used over HTTP connections. This option defines the number of seconds between Web3 calls for a receipt which confirms that a transaction was mined by the network.
Default is 1000 ms.
Will set the transactionPollingInterval.
Used over HTTP connections. This option defines the number of seconds Web3 will wait for a receipt which confirms that a transaction was mined by the network. Note: If this method times out, the transaction may still be pending.
Default is 750 seconds (12.5 minutes).
Will set the transactionPollingTimeout.
The transactionPollingInterval is used over HTTP connections. This option defines the number of seconds between Web3 calls for a receipt which confirms that a transaction was mined by the network.
Default is undefined
Will set the transactionReceiptPollingInterval
The time used to wait for Ethereum Node to return the sent transaction result.
Note: If the RPC call stuck at the Node and therefor timed-out, the transaction may still be pending or even mined by the Network. We recommend checking the pending transactions in such a case.
Default is 750 seconds (12.5 minutes).
Will set the transactionSendTimeout.
Cancels the listings of the expired items and returns them to the seller using Web3.js.
The initialized Web3 contract instance of the marketplace.
Array of IDs of the expired items on the marketplace.
Cancels the listing of the token and returns it to the seller using Web3.js.
The initialized Web3 contract instance of the marketplace.
The ID of the listed token on the marketplace.
Gets the information of a token in a collection via ID. Path: https://api.gaming.chainsafe.io/v1/projects/{projectID}/collections/{collectionID}/tokens/{tokenID}
Project ID to query.
Collection ID to query.
Token ID to query
Gets all items in a marketplace. Path: https://api.gaming.chainsafe.io/v1/projects/{projectID}/marketplaces/{marketplaceID}/items
Marketplace ID to query.
Project ID to query.
Gets the owners of a token ID in a collection. Path: https://api.gaming.chainsafe.io/v1/projects/{projectID}/collections/{collectionID}/tokens/{tokenID}/owners
Project ID to query.
Collection ID to query.
Token ID to query.
Places an item for sale on the marketplace using Web3.js.
The initialized Web3 contract instance of the marketplace.
The address of the NFT contract.
The ID of the token in the NFT contract.
The listing price in wei as a string.
The listing deadline as a UNIX timestamp in seconds, or "0" if no deadline.
Places multiple items for sale on the marketplace using Web3.js.
The initialized Web3 contract instance of the marketplace.
Array of NFT contract addresses.
Array of token IDs in the NFT contracts.
Array of token amounts as strings.
Array of listing prices in wei as strings.
Array of listing deadlines as UNIX timestamps in seconds.
Performs the sale of a marketplace item using Web3.js.
The initialized Web3 contract instance of the marketplace.
The ID of the listed token on the marketplace.
The price of the item in wei, as required by the function (must match the listing price).
ProtectedregisterStaticfrom
Will return the Web3BatchRequest constructor.