The last argument says how much you want to spend. This method returns only spendable, i.e., unspent coins (of a given asset ID). If you ask for more spendable than the amount of unspent coins you have, it returns an error.
Get all the spendable balances of all assets for an address. This is different from getting the coins because we only return the numbers (the sum of UTXOs coins amount for each asset id) and not the UTXOs coins themselves.
A message proof is a cryptographic proof that a message was included in a block. You can use the getMessageProof method to retrieve a message proof for a given transaction ID and message ID.
const result =await tx.waitForResult();// Wait for the next block to be minter on out case we are using a local provider// so we can create a new tx to generate next blockconst resp =await sender.transfer(recipient, AMOUNT, BaseAssetId, { gasPrice, gasLimit:10_000,});const nextBlock =await resp.waitForResult();const messageOutReceipt = <providersMod.TransactionResultMessageOutReceipt>result.receipts[0];const messageProof =await provider.getMessageProof( result.gqlTransaction.id, messageOutReceipt.nonce, nextBlock.blockId);