We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetchData() fetchData('LSP3Profile') fetchData(['LSP3Profile', 'MyKey']) getData() > get all Data according to schema: {LSP3Profile: {...}, "LSP3IssuedAssets[]": [...], ...} getData('LSP3Profile') > {LSP3Profile: {...}} getData(['LSP3Profile', 'MyKey']) > {LSP3Profile: {...}, MyKey: {}} encodeData({LSP3Profile: {...}, ...}) > {'LSP3Profile': {key: ..., value: ...}, ...} encodeData({LSP3Profile: {...}, "LSPIssuedAssets[]": [...]}) > {'LSP3Profile': {key: ..., value: ...}, "LSPIssuedAssets[]": {...}, "LSPIssuedAssets[0]": {...}, "LSPIssuedAssets[1]": {...}} decodeData({LSP3Profile: {...}, ...}) > {LSP3Profile: {...}, ...}
Encode example:
// encode let results = encodeData({ 'LSP3Profile': { hashFunction: 'keccak256(utf8)', hash: '0xd96ff7776660095f661d16010c4349aa7478a9129ce0670f771596a6ff2d864a', url: 'ipfs://QmbTmcbp8ZW23vkQrqkasMFqNg2z1iP4e3BCUMz9PKDsSV' } }); // storing encoded results in a contract for (const result of results) { await myContract.methods.setData(result.key, result.value).send(...); }
The text was updated successfully, but these errors were encountered:
@rryter
Sorry, something went wrong.
rryter
Successfully merging a pull request may close this issue.
Encode example:
The text was updated successfully, but these errors were encountered: