multiversx_sdk.entrypoints package

Submodules

multiversx_sdk.entrypoints.config module

class multiversx_sdk.entrypoints.config.DevnetEntrypointConfig[source]

Bases: object

chain_id = 'D'
network_provider_kind = 'api'
network_provider_url = 'https://devnet-api.multiversx.com'
class multiversx_sdk.entrypoints.config.MainnetEntrypointConfig[source]

Bases: object

chain_id = '1'
network_provider_kind = 'api'
network_provider_url = 'https://api.multiversx.com'
class multiversx_sdk.entrypoints.config.TestnetEntrypointConfig[source]

Bases: object

chain_id = 'T'
network_provider_kind = 'api'
network_provider_url = 'https://testnet-api.multiversx.com'

multiversx_sdk.entrypoints.entrypoints module

class multiversx_sdk.entrypoints.entrypoints.DevnetEntrypoint(url: str | None = None, kind: str | None = None)[source]

Bases: NetworkEntrypoint

class multiversx_sdk.entrypoints.entrypoints.MainnetEntrypoint(url: str | None = None, kind: str | None = None)[source]

Bases: NetworkEntrypoint

class multiversx_sdk.entrypoints.entrypoints.NetworkEntrypoint(network_provider_url: str, network_provider_kind: str, chain_id: str)[source]

Bases: object

await_transaction_completed(tx_hash: str | bytes) TransactionOnNetwork[source]
create_account() Account[source]

Generates a new secret key and instantiates an account.

create_account_controller() AccountController[source]
create_account_transactions_factory() AccountTransactionsFactory[source]
create_delegation_controller() DelegationController[source]
create_delegation_transactions_factory() DelegationTransactionsFactory[source]
create_network_provider() ApiNetworkProvider | ProxyNetworkProvider[source]
create_relayed_controller() RelayedController[source]
create_relayed_transactions_factory() RelayedTransactionsFactory[source]
create_smart_contract_controller(abi: Abi | None = None) SmartContractController[source]
create_smart_contract_transactions_factory(abi: Abi | None = None) SmartContractTransactionsFactory[source]
create_token_management_controller() TokenManagementController[source]
create_token_management_transactions_factory() TokenManagementTransactionsFactory[source]
create_transfers_controller() TransfersController[source]
create_transfers_transactions_factory() TransferTransactionsFactory[source]
get_airdrop(address: Address) None[source]

Get xEGLD tokens on Devnet or Testnet.

get_transaction(tx_hash: str | bytes) TransactionOnNetwork[source]
recall_account_nonce(address: Address) int[source]
send_transaction(transaction: Transaction) bytes[source]
send_transactions(transactions: list[Transaction]) tuple[int, list[bytes]][source]

Sends multiple transactions.

Args:

transactions (list[Transaction]): An iterable containing multiple transactions (e.g. a list of transactions).

Returns:

tuple (int, list[bytes]): The integer indicates the total number of transactions sent, while the list contains the transactions hashes. If a transaction is not sent, the hash is empty.

verify_message_signature(message: Message) bool[source]
verify_transaction_signature(transaction: Transaction) bool[source]
class multiversx_sdk.entrypoints.entrypoints.TestnetEntrypoint(url: str | None = None, kind: str | None = None)[source]

Bases: NetworkEntrypoint

multiversx_sdk.entrypoints.errors module

exception multiversx_sdk.entrypoints.errors.InvalidNetworkProviderKindError[source]

Bases: Exception

Module contents

class multiversx_sdk.entrypoints.DevnetEntrypoint(url: str | None = None, kind: str | None = None)[source]

Bases: NetworkEntrypoint

class multiversx_sdk.entrypoints.MainnetEntrypoint(url: str | None = None, kind: str | None = None)[source]

Bases: NetworkEntrypoint

class multiversx_sdk.entrypoints.NetworkEntrypoint(network_provider_url: str, network_provider_kind: str, chain_id: str)[source]

Bases: object

await_transaction_completed(tx_hash: str | bytes) TransactionOnNetwork[source]
create_account() Account[source]

Generates a new secret key and instantiates an account.

create_account_controller() AccountController[source]
create_account_transactions_factory() AccountTransactionsFactory[source]
create_delegation_controller() DelegationController[source]
create_delegation_transactions_factory() DelegationTransactionsFactory[source]
create_network_provider() ApiNetworkProvider | ProxyNetworkProvider[source]
create_relayed_controller() RelayedController[source]
create_relayed_transactions_factory() RelayedTransactionsFactory[source]
create_smart_contract_controller(abi: Abi | None = None) SmartContractController[source]
create_smart_contract_transactions_factory(abi: Abi | None = None) SmartContractTransactionsFactory[source]
create_token_management_controller() TokenManagementController[source]
create_token_management_transactions_factory() TokenManagementTransactionsFactory[source]
create_transfers_controller() TransfersController[source]
create_transfers_transactions_factory() TransferTransactionsFactory[source]
get_airdrop(address: Address) None[source]

Get xEGLD tokens on Devnet or Testnet.

get_transaction(tx_hash: str | bytes) TransactionOnNetwork[source]
recall_account_nonce(address: Address) int[source]
send_transaction(transaction: Transaction) bytes[source]
send_transactions(transactions: list[Transaction]) tuple[int, list[bytes]][source]

Sends multiple transactions.

Args:

transactions (list[Transaction]): An iterable containing multiple transactions (e.g. a list of transactions).

Returns:

tuple (int, list[bytes]): The integer indicates the total number of transactions sent, while the list contains the transactions hashes. If a transaction is not sent, the hash is empty.

verify_message_signature(message: Message) bool[source]
verify_transaction_signature(transaction: Transaction) bool[source]
class multiversx_sdk.entrypoints.TestnetEntrypoint(url: str | None = None, kind: str | None = None)[source]

Bases: NetworkEntrypoint