Allnodes Docs
  • Allnodes API
  • Endpoints
    • Validator
    • Staking
    • Full Node
  • 1INCH NETWORK (1INCH)
    • Staking
  • AAVE (AAVE)
    • Staking
  • AVALANCHE (AVAX)
    • Validator
  • Dash (DASH)
    • Masternode
  • ETHEREUM (ETH)
    • Validator
    • Staking
  • Firo (FIRO)
    • Masternode
  • KUSAMA (KSM)
    • Kusama Staking
  • NEAR Protocol (NEAR)
    • NEAR Protocol Staking
  • PAC PROTOCOL (PAC)
    • Masternode
  • POLKADOT (DOT)
    • Polkadot Staking
  • POLYGON (POL)
    • Staking
  • SHIBA INU (SHIB)
    • Shiba Inu Staking
  • SOLANA (SOL)
    • Solana Staking
  • Syscoin (SYS)
    • Masternode
  • THE GRAPH (GRT)
    • The Graph Staking
  • TRON (TRX)
    • Tron Staking
Powered by GitBook
On this page
  • Approve a token
  • Stake coins/tokens
  • Approve withdraw
  • Withdraw stake

Was this helpful?

  1. SHIBA INU (SHIB)

Shiba Inu Staking

Approve a token

POST https://www.allnodes.com/api/v1/staking

This endpoint allows you to get transaction params for approve tokens.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "SHIB"

action*

string

Must be "approve"

address*

string

Your wallet address

{
  network: string;
  toAddress: string;
  amount: string;
  gasLimit: number;
  gasPrice: number;
  data: string;
}
{
  "error": "TOKEN_ALREADY_APPROVED"
}
{
  "error": "INVALID_ADDRESS"
}

Stake coins/tokens

POST https://www.allnodes.com/api/v1/staking

This endpoint allows you to get transaction params for staking coins/tokens.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "SHIB"

action*

string

Must be "stake"

address*

string

Your wallet address

amount*

string

Amount to stake

{
  network: string;
  toAddress: string;
  amount: string;
  gasLimit: number;
  gasPrice: number;
  data: string;
}
{
  "error": "NOT_ENOUGH_TOKENS"
}
{
  "error": "INVALID_ADDRESS"
}

Approve withdraw

POST https://www.allnodes.com/api/v1/staking

This endpoint allows you to get transaction params for approve staked tokens (needed to be executed before withdraw staked SHIBs).

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "SHIB"

action*

string

Must be "approve-withdraw"

address*

string

Your wallet address

{
  network: string;
  toAddress: string;
  amount: string;
  gasLimit: number;
  gasPrice: number;
  data: string;
}
{
  "error": "TOKEN_ALREADY_APPROVED"
}
{
  "error": "INVALID_ADDRESS"
}

Withdraw stake

POST https://www.allnodes.com/api/v1/staking

This endpoint allows you to get transaction params for withdraw stake.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "SHIB"

action*

string

Must be "withdraw-stake"

address*

string

Your wallet address

amount*

string

Amount to withdraw

{
  network: string;
  toAddress: string;
  amount: string;
  gasLimit: number;
  gasPrice: number;
  data: string;
}
{
  "error": "NOT_ENOUGH_EPOCHS_PASSED"
}
{
  "error": "INVALID_ADDRESS"
}
PreviousStakingNextSolana Staking

Last updated 2 years ago

Was this helpful?