A successful response.
const response = await fetch('https://inj.nownodes.io/peggy/v1/module_state', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"state": {
"params": {
"peggy_id": "text",
"contract_source_hash": "text",
"bridge_ethereum_address": "text",
"bridge_chain_id": "text",
"signed_valsets_window": "text",
"signed_batches_window": "text",
"signed_claims_window": "text",
"target_batch_timeout": "text",
"average_block_time": "text",
"average_ethereum_block_time": "text",
"slash_fraction_valset": "Ynl0ZXM=",
"slash_fraction_batch": "Ynl0ZXM=",
"slash_fraction_claim": "Ynl0ZXM=",
"slash_fraction_conflicting_claim": "Ynl0ZXM=",
"unbond_slashing_valsets_window": "text",
"slash_fraction_bad_eth_signature": "Ynl0ZXM=",
"cosmos_coin_denom": "text",
"cosmos_coin_erc20_contract": "text",
"claim_slashing_enabled": false,
"bridge_contract_start_height": "text",
"valset_reward": {
"denom": "text",
"amount": "text"
},
"admins": [
"text"
]
},
"last_observed_nonce": "text",
"valsets": [
{
"nonce": "text",
"members": [
{
"power": "text",
"ethereum_address": "text"
}
],
"height": "text",
"reward_amount": "text",
"reward_token": "text"
}
],
"valset_confirms": [
{
"nonce": "text",
"orchestrator": "text",
"eth_address": "text",
"signature": "text"
}
],
"batches": [
{
"batch_nonce": "text",
"batch_timeout": "text",
"transactions": [
{
"id": "text",
"sender": "text",
"dest_address": "text",
"erc20_token": {
"contract": "text",
"amount": "text"
},
"erc20_fee": {
"contract": "text",
"amount": "text"
}
}
],
"token_contract": "text",
"block": "text"
}
],
"batch_confirms": [
{
"nonce": "text",
"token_contract": "text",
"eth_signer": "text",
"orchestrator": "text",
"signature": "text"
}
],
"attestations": [
{
"observed": false,
"votes": [
"text"
],
"height": "text",
"claim": {
"type_url": "text",
"value": "Ynl0ZXM="
}
}
],
"orchestrator_addresses": [
{
"sender": "text",
"orchestrator": "text",
"eth_address": "text"
}
],
"erc20_to_denoms": [
{
"erc20": "text",
"denom": "text"
}
],
"unbatched_transfers": [
{
"id": "text",
"sender": "text",
"dest_address": "text",
"erc20_token": {
"contract": "text",
"amount": "text"
},
"erc20_fee": {
"contract": "text",
"amount": "text"
}
}
],
"last_observed_ethereum_height": "text",
"last_outgoing_batch_id": "text",
"last_outgoing_pool_id": "text",
"last_observed_valset": {
"nonce": "text",
"members": [
{
"power": "text",
"ethereum_address": "text"
}
],
"height": "text",
"reward_amount": "text",
"reward_token": "text"
},
"ethereum_blacklist": [
"text"
]
}
}