Releases: blocto/solana-go-sdk
Releases · blocto/solana-go-sdk
v1.6.0
What's new
- (client, rpc) add get slot
- (rpc) refactor get program account
Fix
v1.5.0
What's new
- Support spl name service query
v1.4.1
Fix
- handle error response from rpc
v1.4.0
What's new
RPC
make api interface more friendly
- getBalance
- getAccountInfo
- getRecentBlockhash
- sendTransaction
Client
add a more quick send tx func, sendTransaction
now you can send tx like
c := client.NewClient(rpc.DevnetRPCEndpoint)
sig, err := c.SendTransaction(
context.Background(),
client.SendTransactionParam{
Instructions: []types.Instruction{
sysprog.Transfer(
feePayer.PublicKey,
to.PublicKey,
1, // 1 lamports
),
},
Signers: []types.Account{feePayer},
FeePayer: feePayer.PublicKey,
},
)
I will wrap tx for you in the client 🎉
If you need more custom way, you can also use c.RpcClient.SendTransaction or c.RpcClient.SendTransactionWithConfig to send !
v1.3.0
What's new
- add some new instruction enum to token program
v1.2.0
What's new
- add syncNative instruction to token program
v1.1.0
What's new
- implement
setLockUp
instruction for stake program
- add some examples
v1.0.0
Client
separate rpc and wrapped client for different situations.
MISC
- move program file together
- extract some function to pkg
- add examples folder.
- update many docs.
- add a little rpc client's tests (still building)
v0.3.0
RPC
- add preTokenBalance and postTokenBalance to transaction meta struct
MISC
- replace internal/ed25519 with filippo.io/edwards25519
- lint
v0.2.0
add new rpc
- getSignaturesForAddress
- getBlocksWithLimit
- getTransaction
- getBlocks
- getBlock
- getBlockHeight
- getFirstAvailableBlock
- getGenesisHash
- getIdentity
add new config supprot in SimulateTransaction