Skip to content

Instantly share code, notes, and snippets.

use reqwest::Client;
use serde_json::json;
use solana_client::{
client_error::{ClientError, ClientErrorKind, Result as ClientResult},
nonblocking::rpc_client::RpcClient,
rpc_config::RpcSimulateTransactionConfig,
};
use solana_program::instruction::Instruction;
use solana_sdk::{
commitment_config::CommitmentConfig,
@beeman
beeman / Dockerfile
Last active December 6, 2024 16:10
Docker image with solana-test-validator that works on Apple Silicon 👉 Image here https://github.com/beeman/solana-test-validator 👈
FROM debian:bullseye AS base
ARG AGAVE_VERSION=2.0.15
ARG RUST_VERSION=stable
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
WORKDIR /workspace
RUN mkdir -pv "/workspace/bin" && echo 'echo test' > '/workspace/bin/test.sh' && chmod +x '/workspace/bin/test.sh'