Noble API
Methods
Connect
Connect the Noble client to the Noble network.
Method Declaration
Python
async def connect(self, mnemonic: str)
Parameters
Response
Examples: TypeScript | Rust
Get Account Balance
Query token balance of an account/address.
Method Declaration
Python
async def get_account_balance(
self, address: str, denom: str
) -> bank_query.QueryBalanceResponse
Parameters
Response
Examples: TypeScript
Get Account Balances
Query all balances of an account/address.
Method Declaration
Python
async def get_account_balances(
self, address: str
) -> bank_query.QueryAllBalancesResponse:
Parameters
Response
Examples: TypeScript | Rust
Get account
Query for an account by it's address.
Method Declaration
Python
async def get_account(self, address: str) -> BaseAccount
Parameters
Response
Examples: Python | [TypeScript] | Rust
Query Address
Fetch account's number and sequence number from the network.
Method Declaration
Python
Parameters
Response
Send Token Ibc
Transfer a token asset between Cosmos blockchain networks.
Method Declaration
Python
Unification Plan
- Generalize to all IBC/blockchains.
- Missing in Python.
- Missing in TS: user required to produce the low-level message and then
post.send()
it.
Parameters
Parameter | Location | Type | Mandatory | Description |
---|---|---|---|---|
account | query | Account | true | The account. |
sender | query | Address | true | Address of the sender. |
recipient | query | Address | true | Address of the recipient. |
token | query | int | true | Token type and amount to transfer. |
source_channel | query | String | true | Source IBC relay channel. |
Response
| Status | Meaning | Schema |
| ------ | ------------- | -------- | ------------------------------------- |
| 200
| OK | [TxHash] |
| 400
| Bad Request | | The request was malformed or invalid. |
Simulate
Method Declaration
Python
async def simulate_transaction(
self,
messages: List[dict],
gas_price: str = "0.025uusdc",
memo: Optional[str] = None,
) -> Fee:
Parameters
Response
Examples: TypeScript