Validations
Last updated
Last updated
Loop validates some of the transfer requests inputs to ensure that transactions are successfully processed on-chain. Validation happens at the time of submission, thus if parameters change (e.g. the "to" wallet, the requests will not be re-validated and may lead to a failed transaction.
invoiceId
Must be a string
to
None unless the address is saved in the contract. the address is validated against what is saved in the contract
from
None
amount
None
token
Yes, the token must be accepted by the
usd
Must be boolean
signature
Yes, that it is a valid signature. We do NOT validate if the signature was produced by the signer wallet or if the signature has already been used.
itemId
Yes, that it exists for the entity
billDate
Must be equal to or greater than now or "0" for immediate
networkId
Yes, that it is "1", "137", "5", or "80001"
entityId
None
item