Hi guys,
I am testing to place buy order on Rinkeby/ OpenSea using Moralis Opensea Plugin and Ethereum boiler plate…
I got the error:
MoralisWeb3.js:848 Uncaught (in promise) Error: Unknown trigger: “callPluginEndpoint”
at Function. (MoralisWeb3.js:848)
at tryCatch (runtime.js:63)
at Generator.invoke [as _invoke] (runtime.js:294)
at Generator.next (runtime.js:119)
at asyncGeneratorStep (asyncToGenerator.js:5)
at _next (asyncToGenerator.js:27)
the code bellow (this code is inside a React component):
const placeOffer = async () => {
console.log("Placing offers..");
const expirationTime = Math.round(Date.now() / 1000 + duration * 60 * 60);
await Moralis.Plugins.opensea.createBuyOrder({
network: "testnet",
tokenAddress: "0xCae0b79679dC38E045525077Aa949aacBCB17791",
tokenId: "1",
tokenType: "ERC721",
amount: 0.11,
userAddress: "0x255...dDf75",
paymentTokenAddress: "0xc778417e063141139fce010982780140aa0cd5ab",
//expirationTime: expirationTime,
});
};