getActivity
GET /api/wallets/:aa/activity and returns the payment rows of the account, newest first. The route needs no sign-in, so anyone who names the address can read the rows. A row carries no amount, no recipient and no rule text.
The reader keeps a row with a bad
fee list and sets fee to null. It sets an absent or bad gasCharge to null.
ActivityItem
A
waitReason or a failureReason outside the lists below is a value that your SDK version does not know. Show it as “unknown”.
OutboxTaskStatus
OutboxTaskWaitReason
RedemptionFailureReason
fetchFeeTerms
GET /api/fees and reads the live fee terms of the network field by field. An absent or bad field throws an Error. A failed request throws BackendRequestError. The timeout is 10 seconds.
transferCostBoundWei throws RangeError for a legs value that is not a whole number of 0 or more.
Show the most gas that a rule can cost in its fee token:
fetchWalletSponsorship
GET /api/wallets/:aa/sponsorship. A failed request throws BackendRequestError. A bad body throws an Error. The timeout is 10 seconds.
The client reads this before each Safe owner operation. See Safe account. The ERC20Allow leg does not read it.
Gas credit
readGasCredit reads adapter.gasCredit(payee, token). buildClaimGasCreditCalldata(token, to) encodes claimGasCredit(token, to), which pays the whole credit of the caller in token to to. The payee sends this call itself. For the rules of the claim, see the Safe adapter and the ERC20Allow adapter.
readGasCredit takes publicClient as the viem PublicClient type of the viem version that the SDK pins (2.55.10). With another viem version in your project, TypeScript can refuse your client. Install viem@2.55.10 in your project, or cast the client to the parameter type.