Bank

API

class terra_sdk.client.lcd.api.bank.BankAPI(c)[source]
balance(address)[source]

Fetches an account’s current balance.

Parameters

address (AccAddress) – account address

Returns

balance

Return type

Coins

Messages

Bank module message types.

class terra_sdk.core.bank.msgs.MsgMultiSend(inputs, outputs)[source]

Allows batch-sending between multiple source and destination addresses. The total amount of coins in inputs must match outputs. The transaction containing MsgMultiSend must contain signatures from all addresses used as inputs.

The inputs and output arguments should be of the form:

[{
    "address": "terra1...",
    "coins": "123456789uusd"
},
{
    "address": "terra12...",
    "coins": "2983298ukrw,21323uusd"
}]
Parameters
action = 'multisend'
type: str = 'bank/MsgMultiSend'
class terra_sdk.core.bank.msgs.MsgSend(from_address, to_address, amount)[source]

Sends native Terra assets (Luna or Terra stablecoins) from from_address to to_address.

Parameters
action = 'send'
type: str = 'bank/MsgSend'
class terra_sdk.core.bank.msgs.MultiSendIO(address, coins)[source]

Organizes data for MsgMultiSend input/outputs. Expects data to be provided in the format:

{
   "address": "terra1...",
   "coins": "123456789uusd"
}
address: AccAddress

Input / output address.

coins: terra_sdk.core.coins.Coins

Coins to be sent / received.