Skip to content

Releases: blocto/solana-go-sdk

v1.6.0

03 Sep 17:42
Compare
Choose a tag to compare

What's new

  • (client, rpc) add get slot
  • (rpc) refactor get program account

Fix

  • log messages typo

v1.5.0

02 Sep 18:13
047053d
Compare
Choose a tag to compare

What's new

  • Support spl name service query

v1.4.1

31 Aug 17:47
Compare
Choose a tag to compare

Fix

  • handle error response from rpc

v1.4.0

29 Aug 16:19
Compare
Choose a tag to compare

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

28 Aug 03:48
Compare
Choose a tag to compare

What's new

  • add some new instruction enum to token program

v1.2.0

28 Aug 03:46
Compare
Choose a tag to compare

What's new

  • add syncNative instruction to token program

v1.1.0

21 Aug 12:52
Compare
Choose a tag to compare

What's new

  • implement setLockUp instruction for stake program
  • add some examples

v1.0.0

13 Aug 14:37
89965ba
Compare
Choose a tag to compare

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

27 Jul 16:05
Compare
Choose a tag to compare

RPC

  • add preTokenBalance and postTokenBalance to transaction meta struct

MISC

  • replace internal/ed25519 with filippo.io/edwards25519
  • lint

v0.2.0

10 Jul 17:23
c9f2599
Compare
Choose a tag to compare

add new rpc

  • getSignaturesForAddress
  • getBlocksWithLimit
  • getTransaction
  • getBlocks
  • getBlock
  • getBlockHeight
  • getFirstAvailableBlock
  • getGenesisHash
  • getIdentity

add new config supprot in SimulateTransaction