createWillOnDigitalWill

payable
Input should be passed in JSON format - Ex: ["0x..."]
Input should be passed in JSON format - Ex: ["0"]
Input should be passed in JSON format - Ex: [{ "assetType": "0", "tokenAddress": "0x...", "tokenId": "0", "amount": "0", "metadataURI": "..." }]
Input should be passed in JSON format - Ex: ["0x..."]
Input should be passed in JSON format - Ex: ["..."]

The native currency value (in Ether) to send with this transaction (ex: 0.01 to send 0.01 native currency).

Use this function in your app

import { prepareContractCall, sendTransaction } from "thirdweb"; const transaction = await prepareContractCall({ contract, method: "function createWillOnDigitalWill(address digitalWillAddress, address[] _beneficiaries, uint256[] _shares, (uint8 assetType, address tokenAddress, uint256 tokenId, uint256 amount, string metadataURI)[] _assets, address[] _oracles, string[] _aadhaarNumbers) payable returns (uint256)", params: [digitalWillAddress, _beneficiaries, _shares, _assets, _oracles, _aadhaarNumbers] }); const { transactionHash } = await sendTransaction({ transaction, account });