Jump to content

Facing issues in constructing an XRPL transaction


Recommended Posts

 transaction = xrpl.models.transactions.Payment(

            account=sender_address,

            amount=drops.to_drops(10),  # Sending 10 XRP as payment (for example)

            destination="YOUR_XRPL_RECEIVER_ADDRESS",  # Receiver address for XRP

            sequence=xrpl_client.get_account_info(sender_address).result['account_data']['Sequence'],

            fee=xrpl.client.FEE_DEFAULT,

        )

 

I was trying to construct a transaction with attributes given in the code. But, getting some issues like:

 

 sequence=xrpl_client.get_account_info(sender_address).result['account_data']['Sequence'],

 

Quote

 

Instance of 'JsonRpcClient' has no 'get_account_info' member

 

 

fee=xrpl.client.FEE_DEFAULT,

 

Quote

 

Module 'xrpl' has no 'client' member; maybe 'clients'?

 

 

Could someone help me solve these issues? 

I really appreciate any help you can provide.

Edited by varunkumar3004
Forgot to add tags
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...