Documentation Index
Fetch the complete documentation index at: https://mintlify.com/frol/near-connect-ios/llms.txt
Use this file to discover all available pages before exploring further.
MessageSignResult contains the signed message data returned by the wallet after successfully signing an off-chain message using the NEP-413 standard.
Properties
The NEAR account ID that signed the message. This identifies which account’s key was used for signing.
The public key used to sign the message. This can be used to verify the signature.
The signature string in JSON format containing the signed message payload according to NEP-413. This includes the message, recipient, nonce, and cryptographic signature.
Usage
MessageSignResult is returned by:
signMessage(message:recipient:nonce:)- Optionally included in
SignInWithMessageResultfromconnectAndSignMessage(message:recipient:nonce:)
Example: Signing a Message
Example: Verifying Authentication
Notes
- All properties are optional because different wallets may return different levels of detail
- The
signaturefield is a JSON string following the NEP-413 message signing standard - The signature can be verified on your backend to authenticate users without blockchain transactions
- Use a unique nonce for each signing request to prevent replay attacks
- Message signing is gas-free since it doesn’t interact with the blockchain