Bool if the provided fee defined in the transaction could be lower.
[ ] sign_and_submit_transaction
Signs a transaction locally and submits it to the network.
Simply calls the sign_transaction function and uses the submit request method to submit the transaction to the network using the WebsocketClient/AsyncWebsocketClient.
fields
type
explanation
transaction
Transaction
The transaction that needs to get signed
wallet
Wallet
The wallet used to sign the transaction.
check_fee
Option<bool>
Bool if the provided fee defined in the transaction could be lower.
client
WebsocketClient/AsyncWebsocketClient
A websocket client object.
[ ] autofill_and_sign_transaction
Autofills and locally signs a transaction.
Autofills fields like fee and signs the given transaction locally by calling sign_transaction.
The method should have a parameter to choose the get_fee calculation type. This Parameter should be optional. If None the default value should be FeeType::Open.
fields
type
explanation
transaction
Transaction
The transaction that needs to get signed
wallet
Wallet
The wallet used to sign the transaction.
client
WebsocketClient/AsyncWebsocketClient
A websocket client object.
fee_type
Option<FeeType>
A enum to determine the fee calculation type.
[ ] submit_transaction -> Response
Submits a signed transaction to the XRP Ledger.
Turns a transaction into a transaction blob and uses the SubmitOnly request method to submit it using the client.
get_transaction_from_hash
The function simply calls the
Tx
request method using theWebsocketClient
/AsyncWebsocketClient
.&str
WebsocketClient
/AsyncWebsocketClient
Option<bool>
Option<u32>
Option<u32>
Sources:
sign_transaction
2.
check_fee
isNone
,check_fee
is True.Transaction
Wallet
Option<bool>
sign_and_submit_transaction
sign_transaction
function and uses thesubmit
request method to submit the transaction to the network using theWebsocketClient
/AsyncWebsocketClient
.Transaction
Wallet
Option<bool>
WebsocketClient
/AsyncWebsocketClient
autofill_and_sign_transaction
Autofills fields like
fee
and signs the given transaction locally by callingsign_transaction
.The method should have a parameter to choose the
get_fee
calculation type. This Parameter should be optional. IfNone
the default value should beFeeType::Open
.Transaction
Wallet
WebsocketClient
/AsyncWebsocketClient
Option<FeeType>
submit_transaction -> Response
Turns a transaction into a transaction blob and uses the
SubmitOnly
request method to submit it using theclient
.Transaction
WebsocketClient
/AsyncWebsocketClient
Sources:
send_reliable_submission -> Response
Calls the
submit_transaction
and waits untilget_transaction_from_hash
returns a validated transaction.Transaction
WebsocketClient
/AsyncWebsocketClient
Sources: