Skip to content

Commit

Permalink
Add get balance contract integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-james committed Oct 25, 2024
1 parent da00f85 commit 6cbbf7e
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.lmax.solana4j.client.jsonrpc;

import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

// https://solana.com/docs/rpc/http/getbalance
class GetBalanceContractTest extends SolanaClientIntegrationTestBase
{
@Test
void shouldGetBalance()
{
// {
// "jsonrpc" : "2.0",
// "result" : {
// "context" : {
// "apiVersion" : "2.0.14",
// "slot" : 309
// },
// "value" : 600000
// },
// "id" : 4
// }
assertThat(api.getBalance(payerAccount)).isEqualTo(600000L);
}
}

0 comments on commit 6cbbf7e

Please sign in to comment.