Interface: TxContext
LegacyTxContext is the transaction context for the transaction payload.
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/base.ts:30
LegacyTxContext is the transaction context for the transaction payload.
Properties
chainIdOverride?
optionalchainIdOverride?:string
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/base.ts:34
Override the chain ID to a custom value. Uses BitBadges mainnet by default.
eip155ChainIdOverride?
optionaleip155ChainIdOverride?:number
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/base.ts:78
Override the EIP-155 numeric chain id used when building the EIP-712
typed-data payload. Default: derived from testnet (50024 mainnet,
50025 testnet). Required for custom chains (e.g. 90123 for local
devnet) since they don't match the default mapping.
evmAddress?
optionalevmAddress?:string
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/base.ts:71
Optional EVM address for precompile conversion. If provided, payload will include evmTx field.
Behavior:
- If only evmAddress is provided: Only evmTx will be generated (no Cosmos payloads)
- If only sender is provided: Only Cosmos payloads will be generated (no evmTx)
- If both are provided: Both Cosmos payloads and evmTx will be generated
fee
fee:
Fee
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/base.ts:61
memo?
optionalmemo?:string
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/base.ts:62
sender?
optionalsender?:object
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/base.ts:44
Details about the sender of this transaction. Address must be a BitBadges address (bb-prefixed).
Required if you want to generate Cosmos payloads (signDirect, legacyAmino). If only evmAddress is provided, Cosmos payloads will not be generated.
Public key is required for Cosmos signatures.
accountNumber
accountNumber:
Uint64Like
Account number. Post-v34 accounts get hash-derived numbers above 2^53
— pass the chain's string value (or a bigint) unchanged; never convert
it with Number(). Unsafe number inputs are rejected loudly.
address
address:
string
publicKey
publicKey:
string
sequence
sequence:
Uint64Like
Sequence (nonce). Post-v34 unordered-tx nonces can be nanosecond timestamps above 2^53 — pass the chain's string value (or a bigint) unchanged; never convert it with Number().
testnet?
optionaltestnet?:boolean
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/base.ts:32
Use the BitBadges testnet? Usee mainnet by default.