Skip to content

chore(solana): remove sol4k, use Rpc20Driver for latest blockhash#1044

Merged
bmc08gt merged 1 commit into
code/cashfrom
chore/remove-sol4k
Jul 6, 2026
Merged

chore(solana): remove sol4k, use Rpc20Driver for latest blockhash#1044
bmc08gt merged 1 commit into
code/cashfrom
chore/remove-sol4k

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

sol4k was used in only two places: RpcUrl.MAINNNET.value for the mainnet endpoint and a single Connection.getLatestBlockhash() call. Replace both with the existing Rpc20Driver — a new getLatestBlockhash() extension mirroring the other RPC calls, plus a named MAINNET_RPC_URL constant — and drop the org.sol4k:sol4k dependency.

This also removes the library's only kotlin-stdlib 2.4.0 requirement, unblocking it from the pending Kotlin 2.4 upgrade. Behavior is unchanged: same mainnet endpoint and finalized blockhash commitment.

sol4k was used in only two places: RpcUrl.MAINNNET.value for the mainnet
endpoint and a single Connection.getLatestBlockhash() call. Replace both
with the existing Rpc20Driver — a new getLatestBlockhash() extension mirroring
the other RPC calls, plus a named MAINNET_RPC_URL constant — and drop the
org.sol4k:sol4k dependency.

This also removes the library's only kotlin-stdlib 2.4.0 requirement,
unblocking it from the pending Kotlin 2.4 upgrade. Behavior is unchanged:
same mainnet endpoint and finalized blockhash commitment.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this Jul 6, 2026
@github-actions github-actions Bot added type: chore Maintenance, config, CI/CD area: crypto Solana, keys, encryption, signing area: onramp Deposit, purchase, Coinbase, fiat on-ramp area: deeplinks Deep link handling, URL routing, and link parsing labels Jul 6, 2026
@bmc08gt bmc08gt merged commit ecd7c25 into code/cash Jul 6, 2026
3 checks passed
@bmc08gt bmc08gt deleted the chore/remove-sol4k branch July 6, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: crypto Solana, keys, encryption, signing area: deeplinks Deep link handling, URL routing, and link parsing area: onramp Deposit, purchase, Coinbase, fiat on-ramp type: chore Maintenance, config, CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant