RPCChannelAuthorize class

The channel_authorize method creates a signature that can be used to redeem a specific amount of XRP from a payment channel. Warning: Do not send secret keys to untrusted servers or through unsecured network connections. (This includes the secret, seed, seed_hex, or passphrase fields of this request.) You should only use this method on a secure, encrypted network connection to a server you run or fully trust with your funds. Otherwise, eavesdroppers could use your secret key to sign claims and take all the money from this payment channel and anything else using the same key pair. See Set Up Secure Signing for instructions.

Inheritance

Constructors

RPCChannelAuthorize.new({required String channelId, required String amount, String? secret, String? seed, String? seedHex, String? passphrase, XRPKeyAlgorithm? keyType, XRPLLedgerIndex? ledgerIndex = XRPLLedgerIndex.validated})

Properties

amount String
final
channelId String
final
hashCode int
The hash code for this object.
no setterinherited
keyType XRPKeyAlgorithm?
final
ledgerIndex XRPLLedgerIndex?
The ledger index for the lookup.
finalinherited
method String
The RPC method associated with the request.
no setteroverride
passphrase String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secret String?
final
seed String?
final
seedHex String?
final
validate String?
Gets the validation status for the request (default is null == params is valid).
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(Map<String, dynamic> result) Map<String, dynamic>
Handles the response received from the RPC call.
inherited
toJson() Map<String, dynamic>
Converts the request to JSON representation.
override
toRequest(int requestId) RPCRequestDetails
Converts the request to an RPCRequestDetails object.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited