RPCSign class
The sign method takes a transaction in JSON format and a seed value, and returns a signed binary representation of the transaction. To contribute one signature to a multi-signed transaction, use the sign_for method instead. By default, this method is admin-only. It can be used as a public method if the server has enabled public signing. Caution: Unless you run the rippled server yourself, you should do local signing with RippleAPI instead of using this command. An untrustworthy server could change the transaction before signing it, or use your secret key to sign additional arbitrary transactions as if they came from you.
- Inheritance
-
- Object
- LookupByLedgerRequest
- XRPLedgerRequest<
Map< String, dynamic> > - RPCSign
Constructors
- RPCSign.new({required XRPTransaction transaction, String? secret, String? seed, String? seedHex, String? passphrase, XRPKeyAlgorithm? keyType, bool offline = false, bool? buildPath, int feeMulMax = 10, int feeDivMax = 1})
Properties
- buildPath → bool?
-
final
- feeDivMax → int
-
final
- feeMulMax → int
-
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
- offline → bool
-
final
- 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
- transaction → XRPTransaction
-
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