org.web3j.protocol.core.methods.response.DbGetString Java Examples

The following examples show how to use org.web3j.protocol.core.methods.response.DbGetString. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JsonRpc2_0Web3j.java    From client-sdk-java with Apache License 2.0 5 votes vote down vote up
@Override
public Request<?, DbGetString> dbGetString(String databaseName, String keyName) {
    return new Request<>(
            "db_getString",
            Arrays.asList(databaseName, keyName),
            web3jService,
            DbGetString.class);
}
 
Example #2
Source File: JsonRpc2_0Web3j.java    From etherscan-explorer with GNU General Public License v3.0 5 votes vote down vote up
@Override
public Request<?, DbGetString> dbGetString(String databaseName, String keyName) {
    return new Request<>(
            "db_getString",
            Arrays.asList(databaseName, keyName),
            web3jService,
            DbGetString.class);
}
 
Example #3
Source File: ResponseTest.java    From etherscan-explorer with GNU General Public License v3.0 5 votes vote down vote up
@Test
public void testDbGetString() {
    buildResponse(
            "{\n"
                    + "  \"id\":1,\n"
                    + "  \"jsonrpc\":\"2.0\",\n"
                    + "  \"result\": \"myString\"\n"
                    + "}"
    );

    DbGetString dbGetString = deserialiseResponse(DbGetString.class);
    assertThat(dbGetString.getStoredValue(), is("myString"));
}
 
Example #4
Source File: JsonRpc2_0Web3j.java    From web3j with Apache License 2.0 5 votes vote down vote up
@Override
public Request<?, DbGetString> dbGetString(String databaseName, String keyName) {
    return new Request<>(
            "db_getString",
            Arrays.asList(databaseName, keyName),
            web3jService,
            DbGetString.class);
}
 
Example #5
Source File: ResponseTest.java    From web3j with Apache License 2.0 5 votes vote down vote up
@Test
public void testDbGetString() {
    buildResponse(
            "{\n"
                    + "  \"id\":1,\n"
                    + "  \"jsonrpc\":\"2.0\",\n"
                    + "  \"result\": \"myString\"\n"
                    + "}");

    DbGetString dbGetString = deserialiseResponse(DbGetString.class);
    assertEquals(dbGetString.getStoredValue(), ("myString"));
}
 
Example #6
Source File: Ethereum.java    From etherscan-explorer with GNU General Public License v3.0 votes vote down vote up
Request<?, DbGetString> dbGetString(String databaseName, String keyName); 
Example #7
Source File: Ethereum.java    From web3j with Apache License 2.0 votes vote down vote up
Request<?, DbGetString> dbGetString(String databaseName, String keyName);