Private _isPrivate _walletPrivate abiPrivate Readonly callbackPrivate Readonly categoryPrivate contractPrivate dealPrivate iexecPrivate taskthe provider used by the wallet signer
the wallet used by the current user
This method is used to submit a query
// Sign in with a RPC provider and a private key
const walletSigner: WalletSignerJsonRpc = new WalletSignerJsonRpc(chainURL);
walletSigner.signInWithPrivateKey(privateKEY);
// Otherwise Sign in with MetaMask
// const walletSigner = new WalletSignerMetamask(window.ethereum);
const desmohub: DesmoHub = new DesmoHub(walletSigner);
const desmoContract = new DesmoContract(walletSigner);
const eventPromise = firstValueFrom(desmoHub.requestID$);
await desmoHub.getNewRequestID();
const event = await eventPromise;
const query = {
prefixList: [
{ abbreviation: 'desmo', completeURI: 'https://desmo.vaimee.it/' },
{ abbreviation: 'qudt', completeURI: 'http://qudt.org/schema/qudt/' },
{
abbreviation: 'xsd',
completeURI: 'http://www.w3.org/2001/XMLSchema/',
},
{
abbreviation: 'monas',
completeURI: 'https://pod.dasibreaker.vaimee.it/monas/',
},
],
property: { identifier: 'value', unit: 'qudt:DEG_C', datatype: 1 },
staticFilter: '$[?(@["type"]=="Sensor")]',
};
await desmoContract.buyQuery(
event.requestID,
JSON.stringify(query),
iExecDAppAddress,
);
Private fetchPrivate fetchPrivate retrievePrivate retrieveGenerated using TypeDoc
Returns
whether the wallet signer is connected to the contract