Skip to content

BedrockAgentCoreClient.get_payment_instrument_balance

rboto-bedrock-agentcore==0.4.0 · Service index · Types

Model summary (excerpt): Get the balance of a payment instrument.

Install and imports

python -m pip install "rboto[bedrock-agentcore]==0.4.0"
from rboto import BedrockAgentCoreClient
from rboto_bedrock_agentcore.types import (
    BlockchainChainId,
    GetPaymentInstrumentBalanceOutput,
    InstrumentBalanceToken,
)

Signature

async def get_payment_instrument_balance(
    *,
    payment_manager_arn: str,
    payment_connector_id: str,
    payment_instrument_id: str,
    chain: BlockchainChainId,
    token: InstrumentBalanceToken,
    user_id: str | None = None,
    agent_name: str | None = None,
) -> GetPaymentInstrumentBalanceOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
payment_manager_arn Yes The ARN of the payment manager that owns this payment instrument.
payment_connector_id Yes The ID of the payment connector associated with this instrument.
payment_instrument_id Yes The ID of the payment instrument to query balance for.
chain Yes The specific blockchain chain to query balance on. Required because balances are chain-specific.
token Yes The token to query balance for. Only tokens supported for X402 payments are returned.
user_id No The user ID associated with this payment instrument.
agent_name No The agent name associated with this request, used for observability.

Output

GetPaymentInstrumentBalanceOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
payment_instrument_id str Always present —
token_balance TokenBalanceOutput | None Always present TokenBalanceOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

BlockchainChainId, GetPaymentInstrumentBalanceOutput, InstrumentBalanceToken

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_bedrock_agentcore.exceptions:

AccessDeniedError, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model