getGateway
getGateway
is a method on the ARIO
class that retrieves detailed information about a specific gateway using its wallet address.
getGateway
does not require authentication.
Parameters
← Swipe to see more →
Parameter | Type | Description | Optional |
---|---|---|---|
gatewayAddress | string - WalletAddress | The wallet address of the gateway to retrieve | false |
← Swipe to see more →
Examples
getGateway
const { ARIO } = require('@ar.io/sdk');
async function main() {
const ario = ARIO.init();
const gateway = await ario.getGateway({
gatewayAddress: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3'
});
console.log(gateway);
}
main();
Output
{
"gatewayAddress": "t4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3",
"observerWallet": "t4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3",
"operatorStake": 500000000000,
"totalDelegatedStake": 250000000000,
"settings": {
"label": "AR.IO Test Gateway",
"fqdn": "testgateway.ar.io",
"port": 443,
"protocol": "https",
"allowDelegatedStaking": true,
"minDelegatedStake": 100000000,
"delegateRewardShareRatio": 10,
"properties": {
"description": "A test gateway for the AR.IO network"
}
},
"stats": {
"prescribedEpochCount": 150,
"observedEpochCount": 148,
"totalEpochCount": 150,
"passedEpochCount": 148,
"failedEpochCount": 2,
"totalEpochParticipationCount": 148,
"totalEpochsPrescribedCount": 150
},
"status": "joined",
"startTimestamp": 1706227200000,
"endTimestamp": 0,
"vaults": {
"vault_1": {
"balance": 100000000,
"start": 1726243200000,
"end": 1726329600000
}
},
"delegates": {
"delegate_address": {
"delegatedStake": 50000000,
"start": 1726243200000,
"vaults": {}
}
}
}