Function: createRpcSimContext()
createRpcSimContext(Defined in: packages/core/src/soroban-rpc.ts:129 Build therpcUrl,deps?):AccountSimContext
AccountSimContext the BuckspayClient needs to prepare: an
RPC-backed recording simulator + a current-ledger source, both pointed at the
same Soroban RPC. Pass it as the second argument to createBuckspayClient /
createBuckspayConfig.
For the contract/passkey account model, pass deps.simSource - a funded,
existing G-address (the facilitator sponsor’s public key). A C-address can’t
frame a transaction, and the recording sim must run against an account that
exists on-chain or the SAC balance footprint resolves to zero. The classic
model needs no simSource (its from is already a real G-address).
Parameters
rpcUrl
string
deps?
fetchImpl?
RpcFetch
randomNonce?
() =>bigint
simSource?
string
Returns
AccountSimContext
