You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "C:\Python310\lib\site-packages\mospy\Transaction.py", line 178, in _get_signer_infos
signer_infos.sequence = self._account.next_sequence
TypeError: 'NoneType' object cannot be interpreted as an integer
import httpx # optional
from mospy import Account, Transaction
account = Account(
seed_phrase="law grab theory better athlete submit awkward hawk state wedding wave monkey audit blame fury wood tag rent furnace exotic jeans drift destroy style",
address_index=12
)
just run your example code
File "C:\Python310\lib\site-packages\mospy\Transaction.py", line 178, in _get_signer_infos
signer_infos.sequence = self._account.next_sequence
TypeError: 'NoneType' object cannot be interpreted as an integer
import httpx # optional
from mospy import Account, Transaction
account = Account(
seed_phrase="law grab theory better athlete submit awkward hawk state wedding wave monkey audit blame fury wood tag rent furnace exotic jeans drift destroy style",
address_index=12
)
tx = Transaction(
account=account,
gas=1000,
)
tx.set_fee(
amount=100,
denom="uatom"
)
Add a transfer message to the transaction (multiple messages can be added)
tx.add_msg(
tx_type='transfer',
sender=account,
receipient="cosmos1tkv9rquxr88r7snrg42kxdj9gsnfxxg028kuh9",
amount=1000,
denom="uatom"
)
Sign and encode transaction to submit it to the network manually
REST endpoint (RPC or API)
tx_bytes = tx.get_tx_bytes_as_string()
The text was updated successfully, but these errors were encountered: