Add high-level methods for transactions #36
Labels
3rd month
Planned to be worked on in the third month. Estimate budget: 10,000 $
enhancement
New feature or request
XRPL Grants
This issue is planned to get resoled as part of the XRPL Grants program (within 8 months)
Milestone
get_transaction_from_hash
Queries the Ledger for a transaction using the given transaction hash.
The function simply calls the
Tx
request method using theWebsocketClient
/AsyncWebsocketClient
.&str
WebsocketClient
/AsyncWebsocketClient
Option<bool>
Option<u32>
Option<u32>
Sources:
https:/XRPLF/xrpl-py/blob/master/xrpl/asyncio/transaction/ledger.py#L10
https://xrpl.org/tx.html
sign_transaction
Signs a transaction locally.
If
check_fee
isNone
,check_fee
is True.Transaction
Wallet
Option<bool>
sign_and_submit_transaction
Signs a transaction locally and submits it to the network.
Simply calls the
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 and locally signs a 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
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 theclient
.Transaction
WebsocketClient
/AsyncWebsocketClient
Sources:
https:/XRPLF/xrpl-py/blob/master/xrpl/asyncio/transaction/main.py#L120
send_reliable_submission -> Response
Submits a transaction to the XRP Ledger and waits until it got a result from the Ledger back.
Calls the
submit_transaction
and waits untilget_transaction_from_hash
returns a validated transaction.Transaction
WebsocketClient
/AsyncWebsocketClient
Sources:
The text was updated successfully, but these errors were encountered: