#🚀・dev-support

1 messages · Page 8 of 1

tall bronze
#

The transaction did not go through so i don't have tx hash example

topaz seal
dark carbon
wise oriole
#

How long does it take for a deployed TokenFactory to show up on the explorer?

#

Or is there somewhere to see the approval state of such injective deployment?

topaz seal
wise oriole
empty kettle
#

Hello, I have one question about injective spot market.
I am trying to swap the INJ to USDT using spot market, through the smart contract. (testnet)
The smart contract includes the logic from swap-contract sample - https://github.com/InjectiveLabs/swap-contract.
Why do I have the following error?

originalMessage: 'dispatch: submessages: dispatch: submessages: quantity 518833132956537462.000000000000000000 must be a multiple of the minimum quantity tick size 1000000000000000.000000000000000000: invalid quantity',
#

Plus, I have a question about injective node source code.
Where can I find the source code?
I'd like to check the exchange module myself.

jade dragon
#

Hi, are there some sample cade about how connect Python SDK to a local node?

topaz seal
#

You can check the min_quantity_tick_size and the min_price_tick_size in each market's info. You can also see the trading rules in the explorer https://explorer.injective.network/markets/trading-rules/

Injective Explorer - Visualize and search for data on the Injective Chain

The Injective Explorer is an analytics platform that enables anyone to search addresses, trades, tokens, transactions, and other activities on the Injective Chain.

topaz seal
jolly dove
#

Could you give an example of using this on injective explorer? A contract with source code

#

@topaz seal I couldn't find there a contract with source code and didn't see the source code hash

topaz seal
# jolly dove Could you give an example of using this on injective explorer? A contract with s...

The code is on chain, but compiled. You can always get the compiled code using the API (https://api.injective.exchange/#wasm-smartcontractstate)
If you want to see the source code, you need to get in touch with the smart contract developer.
Regarding the contract code hash to validate the published version is the one provided by the developer, check the checksum field in the contract code detail page (https://explorer.injective.network/code/386/)

jolly dove
topaz seal
#

The wasm contracts are sent to the chain in their compiled form, not as source code. The source code can be public, but the chain is not the repository for that (at least not with the current implementation)

hardy wraith
#

Hi can i get any dev who can fetch nfts from public wallet address of inj, then make it show in frontend via mapping them?
if yes Dm me on Twitter: @Discordels_NFT or in Discord. If someone can help me show this data in user profile page i am waiting

hardy wraith
#

got it

#

`import { IndexerGrpcAccountApi } from '@injectivelabs/sdk-ts'
import { getNetworkEndpoints, Network } from '@injectivelabs/networks'

const endpoints = getNetworkEndpoints(Network.Testnet)
const indexerGrpcAccountApi = new IndexerGrpcAccountApi(endpoints.indexer)

const injectiveAddress = 'inj...'

const portfolio = await indexerGrpcAccountApi.fetchPortfolio(injectiveAddress)

console.log(portfolio)`
thanks

#

nah @topaz seal this dont work, console says we cannot take inj balace i think

#

console is too long

topaz seal
hardy wraith
#

Access to fetch at 'https://testnet.exchange.grpc-web.injective.network/injective_accounts_rpc.InjectiveAccountsRPC/SubaccountsList' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Profile.js:87

   POST https://testnet.exchange.grpc-web.injective.network/injective_accounts_rpc.InjectiveAccountsRPC/SubaccountsList net::ERR_FAILED
#

@topaz seal

#

last error in console

#

Profile.js:106 Error fetching INJ balance: Error: Error: Response closed without headers
at IndexerGrpcAccountApi.fetchSubaccountsList (IndexerGrpcAccountApi.js:65:108)
at async fetchInjBalance (Profile.js:87:31)
at async fetchUserInjBalance (Profile.js11925)

topaz seal
hardy wraith
# topaz seal CORS error is not generated by the public endpoints. It is something in the web ...

Look here is my api code thats fetching user blanace:
`// fetch-inj-balance.js

import { IndexerGrpcAccountApi } from "@injectivelabs/sdk-ts";
import { getNetworkEndpoints, Network } from "@injectivelabs/networks";

export default async function handler(req, res) {
// Set CORS headers
res.setHeader("Access-Control-Allow-Origin", "*"); // or the specific origin you want to allow, like 'http://localhost:3000'
res.setHeader("Access-Control-Allow-Methods", "POST, OPTIONS");
res.setHeader("Access-Control-Allow-Headers", "Content-Type");

// Handle preflight requests for CORS
if (req.method === "OPTIONS") {
return res.status(200).end();
}

if (req.method !== "POST") {
return res.status(405).json({ error: "Method not allowed" });
}

try {
const injectiveAddress = req.body.injectiveAddress;
const endpoints = getNetworkEndpoints(Network.Testnet);
const indexerGrpcAccountApi = new IndexerGrpcAccountApi(endpoints.indexer);
const subaccountsList = await indexerGrpcAccountApi.fetchSubaccountsList(
injectiveAddress
);

if (!subaccountsList || subaccountsList.subaccounts.length === 0) {
  throw new Error("No subaccounts found for this address");
}

const mainSubaccount = subaccountsList.subaccounts[0];
const subaccountBalances =
  await indexerGrpcAccountApi.fetchSubaccountBalancesList(
    mainSubaccount.subaccountId
  );
const injBalance = subaccountBalances.balances.find(
  (balance) => balance.denom === "inj"
) || { availableBalance: "0" };

return res.status(200).json({ balance: injBalance.availableBalance });

} catch (error) {
console.error("Error fetching INJ balance:", error);
res.status(500).json({ error: "Error fetching INJ balance" });
}
}
`

#

@topaz seal i seen it many times, u can seeany mistake?

#

`// fetch-inj-balance.js

import { IndexerGrpcAccountApi } from "@injectivelabs/sdk-ts";
import { getNetworkEndpoints, Network } from "@injectivelabs/networks";

export default async function handler(req, res) {
// Set CORS headers
res.setHeader("Access-Control-Allow-Origin", "*"); // or the specific origin you want to allow, like 'http://localhost:3000'
res.setHeader("Access-Control-Allow-Methods", "POST, OPTIONS");
res.setHeader("Access-Control-Allow-Headers", "Content-Type");

// Handle preflight requests for CORS
if (req.method === "OPTIONS") {
return res.status(200).end();
}

if (req.method !== "POST") {
return res.status(405).json({ error: "Method not allowed" });
}

try {
const { injectiveAddress } = req.body;
const endpoints = getNetworkEndpoints(Network.Testnet);
const indexerGrpcAccountApi = new IndexerGrpcAccountApi(endpoints.indexer);

// Use fetchPortfolio instead of fetchSubaccountsList and fetchSubaccountBalancesList
const portfolio = await indexerGrpcAccountApi.fetchPortfolio(injectiveAddress);

// Extract the INJ balance from the portfolio details
const injBalance = portfolio.positions.find(
  (position) => position.ticker === "INJ" // Adjust the ticker if needed
) || { availableBalance: "0" };

return res.status(200).json({ balance: injBalance.availableBalance });

} catch (error) {
console.error("Error fetching INJ balance:", error);
res.status(500).json({ error: "Error fetching INJ balance" });
}
}
`

#

changed to fetch portfolio method now, lemme try

topaz seal
#

I never said the error was in your app. I said it must be a configuration in your web server or app server. You need to get more information on the CORS error: Cross-Origin Resource Sharing (aka: CORS)

hardy wraith
#

Hey @topaz seal i never used inj api to fetch inj balance, doing first time, i copied code from docs to fetch portfolio, made a ts file in a folder, installed dependecies, ran but this gives erro with no orginal message

#

Here is CODE and ERROR CONSOLE

#

Code:
`// powershell -ExecutionPolicy Bypass -Command "ts-node Balance.ts"
import { IndexerGrpcAccountPortfolioApi } from "@injectivelabs/sdk-ts";
import { getNetworkEndpoints, Network } from "@injectivelabs/networks";

async function Main() {
const endpoints = getNetworkEndpoints(Network.Testnet);
const indexerGrpcAccountPortfolioApi = new IndexerGrpcAccountPortfolioApi(
endpoints.indexer
);

const injectiveAddress = "inj1tln0hfzhy4rg3zhp8czvk2xylksrntu2zkgjdw";

const portfolio =
await indexerGrpcAccountPortfolioApi.fetchAccountPortfolioBalances(
injectiveAddress
);

console.log(portfolio);
}

Main();`

Console:
PS D:\Source-Files-and-projects\Visual-Studio-Code\INjective\randomz> powershell -ExecutionPolicy Bypass -Command "ts-node Balance.ts" Error at Object.onEnd (D:\Source-Files-and-projects\Visual-Studio-Code\INjective\randomz\node_modules\@injectivelabs\sdk-ts\src\client\base\IndexerGrpcWebImpl.ts:84:13) at D:\Source-Files-and-projects\Visual-Studio-Code\INjective\randomz\node_modules\@injectivelabs\grpc-web\dist\grpc-web-client.js:1:24439 at D:\Source-Files-and-projects\Visual-Studio-Code\INjective\randomz\node_modules\@injectivelabs\grpc-web\dist\grpc-web-client.js:1:11490 at Array.forEach (<anonymous>) at e.rawOnError (D:\Source-Files-and-projects\Visual-Studio-Code\INjective\randomz\node_modules\@injectivelabs\grpc-web\dist\grpc-web-client.js:1:11452) at e.onTransportHeaders (D:\Source-Files-and-projects\Visual-Studio-Code\INjective\randomz\node_modules\@injectivelabs\grpc-web\dist\grpc-web-client.js:1:9025) at NodeHttp.responseCallback (D:\Source-Files-and-projects\Visual-Studio-Code\INjective\randomz\node_modules\@injectivelabs\grpc-web-node-http-transport\src\index.ts:42:18) at Object.onceWrapper (node:events:629:26) at ClientRequest.emit (node:events:514:28) at ClientRequest.emit (node:domain:489:12) { type: 'grpc-unary-request', code: -1, originalMessage: '', name: 'GrpcUnaryRequestException', errorClass: 'GrpcUnaryRequestException', context: 'AccountPortfolio', contextModule: 'indexer-portfolio' } PS D:\Source-Files-and-projects\Visual-Studio-Code\INjective\randomz>

#

@topaz seal @lime ruin

solar nacelle
#

@topaz seal @open plume @primal terrace would this be a good code to deploy the proposal to mainnet? Took the https://docs.injective.network/develop/guides/cosmwasm-dapps/Cosmwasm_CW20_deployment_guide_Mainnet/ as an example.

yes XXX | injectived tx wasm submit-proposal wasm-store /var/artifacts/rust_contract.wasm --from=inj1mywallet --chain-id="injective-1" --deposit=100000000000000000000inj --instantiate-everybody false --instantiate-only-address "inj1mywallet" --broadcast-mode=sync --yes --gas=10000000 --gas-prices=500000000inj --node=https://sentry.tm.injective.network:443 --title "Upload xxx" --description "longtext"

topaz seal
topaz seal
solar nacelle
topaz seal
solar nacelle
#

we can just store there

nova walrus
#

Any builders have good experience with wallet mobile linking in the dapp?

waxen mauve
#

Is there a documentation to create INJ NFT marketplace?

tall plover
waxen mauve
#

Do you have a sample nft marketplace?

lime ruin
topaz seal
#

@lime mountain @austere bobcat @ionic oxide please consider banning this user. He is just spamming

hardy wraith
#

On official Discordels page

solar nacelle
#

@topaz seal @primal terrace sometimes we have connection errors to the blockchain, txs not coming through

#

Ooops could it be that our new launch took down some of the endpoints? I see partial outage

#

it works again!

topaz seal
solar nacelle
solar nacelle
#

What is actually the current limit on:
injectived query txs [...] --events wasm[...] --limit 30 is what i use now... But i rather have 100 or something there... Seens i can't find this in the documentations

raven merlin
#

hi guys, u know anywhere i can swap testnet USDT to INJ?

silver granite
#

hi fam, can we get inj on coinbase?

solar nacelle
lime ruin
willow cedar
#

Is it possible to get tx info of a contract by its action ?

drowsy sierra
#

Any docs on nfts building for injective protocol?

thorn umbra
#

I encountered the following error:

"Access to XMLHttpRequest at 'https://lcd.injective.network/cosmos/auth/v1beta1/accounts/..' from origin 'https://abc.vercel.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

Could you please investigate the issue? @topaz seal

Yesterday, I did not encounter this error. However, when I attempted again today, I encountered this CORS-related issue. I also tried using a VPN.

Here is the code snippet I am using:

const chainId = ChainId.Mainnet; const { key, accounts, offlineSigner } = keplrAllData.keplrData; const pubKey = Buffer.from(key.pubKey).toString("base64"); const injectiveAddress = key.bech32Address; const restEndpoint = getNetworkEndpoints(Network.Mainnet).rest;

Version of typescript Injective I use

"@injectivelabs/exceptions": "1.14.4", "@injectivelabs/networks": "1.14.4", "@injectivelabs/sdk-ts": "1.14.4", "@injectivelabs/ts-types": "1.14.4", "@injectivelabs/utils": "1.14.4", "@injectivelabs/sdk-ui-ts": "^1.14.5",

Please review and let me know if you can identify any issues.`

#

@ionic oxide

zealous birch
coral dew
#

builders on injective, be honest with me.

why i feel like the more i explore dev tools on injective and how things works,
why i feel.......... more bearish....

thorn umbra
#

GM sir @topaz seal
I got new error

Here is my code

        const dec = 10 * item.decimals;
        combineMsg.push(
          MsgSend.fromJSON({
            amount: {
              amount: `${Number(item.amount) * dec}`,
              denom: item.denom,
            },
            srcInjectiveAddress: injectiveAddress,
            dstInjectiveAddress: item.walletAddress,
          })
        );

    console.log("combineMsg", combineMsg);
    const { signDoc } = createTransaction({
      pubKey,
      chainId,
      fee: DEFAULT_STD_FEE,
      signMode: SIGN_DIRECT,
      message: combineMsg,
      sequence: baseAccount.sequence,
      timeoutHeight: Number(fetchTimeout.data),
      accountNumber: baseAccount.accountNumber,
    });
    console.log("signDoc", signDoc);
    const directSignResponse = await keplr.signDirect(
      injectiveAddress,
      signDoc
    );
    console.log("directSignResponse", directSignResponse);

Here is details error

injectedScript.bundle.js:2 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'bodyBytes')
    at c.<anonymous> (injectedScript.bundle.js:2:54416)
    at Generator.next (<anonymous>)
    at injectedScript.bundle.js:2:48885
    at new Promise (<anonymous>)
    at r (injectedScript.bundle.js:2:48630)
    at c.signDirect (injectedScript.bundle.js:2:54318)
    at transferAll (page.tsx:262:67)

Can you review it for me, thank you

coral dew
#

instead of getting a single contract aaddress, we now use subdenom.

how to use this factory/xxxx/denom to serch on explorer?

ionic oxide
topaz seal
solar nacelle
solar nacelle
topaz seal
worn lantern
raven merlin
#

hi guys, our first proposal passed, just need a hand with getting the contracts uploaded to mainnet

#

same error on both contracts

topaz seal
raven merlin
#

will get the other 2 answers to you shortly, our dev in not on discord

#

we chose the option that everyone can instantiate

#

inj19p5jvgfcdnpwjzp96ldczzjenzjn8y9jq576hm

topaz seal
raven merlin
topaz seal
raven merlin
#

sorry this is our first time on inj, wont need to ask twice

topaz seal
raven merlin
#

but what next? we have 2 contracts in it

#

nvm its 413 and 414

#

thanks @topaz seal

tall plover
#

Hey guys I tried something to send token with this demon but after that it give this error

#

I dont understand why? With "INJ" it works fine?

silver granite
lime ruin
topaz seal
humble crescent
#

We are currently discussing integration with the wallet.
They requested the following data:

can you provide docs on how to resolve names?
either via CURL sample
or rust cdk
we need an easy way to resolve names via an api

nimble cosmos
#

Does injective has an ICA host module?

topaz seal
#

@lime mountain @ionic oxide please consider banning this user that is just spamming in the channel

humble crescent
topaz seal
humble crescent
tall plover
#

injective is it EVM compatible?

lime mountain
#

yes, no need to tag for those kind of questions.

timber yew
#

is there a way to query trading rewards by account or subaccount using RPC nodes?

topaz seal
# tall plover injective is it EVM compatible?

No, currently Injective is not natively EVM compatible. There is a project called InEVM that allow users to run EVM contracts in a kind of L2 on top of Injective chain. But it has some limitations (you will have to refer to InEVM documentation to know more. It has been mentioned numerous times in the near past, it will be easy for you to find references to it using the search tool in Discord, or Google to)

nova walrus
rapid siren
#

anyone know if I can run an indexer without the node?

#

Node is pretty heavy for me

#

is there any thirdparties that allow reading from their nodes?

wise tendon
#

Who can help me to convert inj address to bech32?

cedar parrot
topaz seal
# rapid siren Node is pretty heavy for me

It should be possible if you change the Indexer configuration to point to the public nodes. But keep in mind that Indexer requires more resources than the node (because it keeps history in its DB)

humble crescent
#

To integrate the .inj name into one of the wallets, I'll need either the Rust SDK or a REST API endpoint for name resolution. Where can I get this information? I asked yesterday in this chat and was redirected to the space ID support, where they suggested the team should be contacted directly. Is it possible to obtain the information required for integration

topaz seal
humble crescent
tall plover
broken swan
#

Hi, How to add injective testnet network to metamask wallet?

plush oyster
broken swan
broken swan
tall plover
lime ruin
# tall plover https://github.com/InjectiveLabs/injectived.git am getting not found error (404...

Injectived is the only available Injective CLI tool as far as I know, make sure you're following the instructions correctly: https://docs.injective.network/develop/tools/injectived/install/

injectived is the command-line interface and daemon that connects to Injective and enables you to interact with the Injective blockchain. Injective core is the official Golang reference implementation of the Injective node software.

tall plover
#

root@4zc7:~# wget https://github.com/InjectiveLabs/injective-chain-releases/releases/download/v1.10.0-1679065799/linux-amd 64.zip
--2024-01-31 11:34:04-- https://github.com/InjectiveLabs/injective-chain-releases/releases/download/v1.10.0-1679065799/linux-amd
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-01-31 11:34:05 ERROR 404: Not Found.

--2024-01-31 11:34:05-- http://64.zip/
Resolving 64.zip (64.zip)... failed: Name or service not known.
wget: unable to resolve host address ‘64.zip’
root@4zc7:~#

lime ruin
tall plover
#

Ubuntu

#

okay

#
#

root@4zc7:~/injective-core# injectived version
Version dev (b92723b13)
Compiled at 20240106-0837 using Go go1.19.3 (amd64)
root@4zc7:~/injective-core#

#

means am good?

lime ruin
# tall plover means am good?

You can try running:

injectived --help

To see if it was installed successfully, if there are any further issues then you can post the error here and the devs will take a look when they're available.

fiery flint
#

Hey! I’m nearly completed with a new Dapp built on inEVM and have questions regarding its performance, use and functionality within the Injective framework and ecosystem.

lime ruin
fiery flint
#

Thanks!

While testing I noticed the use of 0x INJ vs Native INJ - from my understanding, inEVM is fully compatible with mainnet Injective but trying to get a clear picture as to how, along with other essential components like , the use of Mainnet INJ ; wallets such as leap/Keplr/Ninja’s compatibility with the Dapp and if users will be able to use, manage and access it seamlessly

fiery flint
lime ruin
broken swan
#

In injective can we create smart contract using solidity, say i want to create a dex like uniswap?

lime ruin
# broken swan In injective can we create smart contract using solidity, say i want to create a...

You can find details regarding how you can create smart contracts on Injective here: https://docs.injective.network/develop/guides/cosmwasm-dapps/Your_first_contract_on_injective

This example illustrates the structure of a basic smart contract. The counter website allows you to interact with an instance of the smart contract on the Injective Testnet. If you have prior CosmWasm smart contract experience, feel free to skip this section.

fiery flint
#

Correct, Dapps utilizing and built on inEVM can connect these wallets to inEVM Dapps like ours to stray away from the 0x INJ that’s currently needed to use for testing ?

I’ve submitted a collaboration form , thank you again Lahn your support has been greatly appreciated and helpful

lime ruin
fiery flint
#

Ok thank you. I have not found these answers in the docs. Much appreciated Lahn

tall plover
#

root@4zc7:~/injective-core# injectived keys add OLDWALLET --recover -i

Enter your bip39 mnemonic

After entering my mnemonic phrase

It asked me for:

Enter keyring passphrase (attempt 1/3):

I left it blank but it insisted that I entered a passphrase that I never set when I was creating the wallet

Is there something am doing wrong?

tall plover
#

Enter keyring passphrase (attempt 1/3):

where do I found this?

lime ruin
amber summit
#

do we know if there will be another hackathon? And if yes, when? 🙂

ionic oxide
toxic forge
lime ruin
toxic forge
#

I've reported several before and they did shut them down but they weren't on Vercel etc

#

I've also had success in extracting the API call their sites make to send peoples seed phrases to their backend and then will run a script to spam them with hundreds of spurious mnemonics per second

#

Until their shit just breaks

lime ruin
#

Haha, good work!

humble crescent
glass warren
#

someone has a reflink for the beta out app?

fervent bay
#

hi i am getting error on injective sdk-ts when await chainGrpcBankApi.fetchBalance()

the error is "Product is under heavy load, refresh the page in a few seconds."

any fix? thanks

topaz seal
fervent bay
timber yew
#

is there a way to query trading rewards by account or subaccount using RPC nodes?

lime ruin
timber yew
#

oh, is the distributedAt a timestamp of some sort?

lime ruin
worldly schooner
#

Can python be used to build something simple for learning

lime ruin
#

What're you trying to do? Where are you having this error?

topaz seal
#

Are you using the correct account? The error says unauthorized. If you are using the correct account you will need to ask Talis support team if this is the correct way to interact with their contract

topaz seal
#

Could you provide more details about the difference in your configuration? I can't understand what you mean with "with injectivelabs" and what you mean with "when I use my own function".
If you found a way to do it that works, why are not using that?

stark oasis
#

While sending transactions to testnet node

#

it gives me errors like timeout and invalid chain randomly sometimes

#

The k8s and sentry testnet nodes

#

Are these error specific to them

#

The transactions are basic like sending tokens and burning

topaz seal
grand blade
#

Please who can solve or Who did this situation happen to?
warning! error encountered during contract execution [contract creation code storage out of gas]

mossy wadi
drifting silo
#

as soon as I install the injective libraries for react, npm run doesnt work anymore

#

how can I fix this?

lucid harness
#

what error are you seeing? @drifting silo

solar nacelle
#

height error on the public RPC node ?

solid herald
#

gm where can I find out the circulating supply of $TALIS?

gray sleet
#

Hey !
Looking forward using LCD endpoint for Injective. I am having trouble for filtering specific queries:
Base Query:
/cosmos/tx/v1beta1/txs?events=message.action='/cosmos.staking.v1beta1.MsgDelegate'

Issue 1: Can't filter correctly (works on other tendermint LCDs

  • &events=delegate.validator='.....'

Issue 2: Can't correctly use pagination.offset correctly (works on Cosmos LCD)

  • &pagination.offset=100

Same using gRPC !
Is it a known issue ?

topaz seal
topaz seal
solar nacelle
topaz seal
solar nacelle
topaz seal
solar nacelle
fossil solar
#

is it possible to verify the binary code of a contract?

signal verge
scarlet crater
#

these docs are the best I have ever seen

#

It took me 0.5h to create a script

#

And on the other hand on sui it took me 12h 🤣

#

Good job!

humble crescent
#

Hello. I have a decentralized exchange (DEX) ready to list the INJ token. Who can fill out the partnership form and the GitHub repository?

lime ruin
bleak shard
#

How to send multiple transactions with different t private keys

#

I am using msgbroadcaster withpk

humble crescent
topaz seal
digital meteor
#

do you know if there's an executable that supports ledger available?

round acorn
#

Hi guys, is there a tutorial somwhere, or more info in general, on how to create a perpetuals exchange?

astral magnet
#

hi, building a wallet on testnet and need to show explorer url to see validator profile

#

can you suggest other explorer that I can use?

topaz seal
topaz seal
topaz seal
wild frigateBOT
humble crescent
#

Hello. Could you provide this information? It is needed for integrating the INJ token into the wallet.
@topaz seal
Rpc :

Chain id :

Explorer :

Token :

opaque hearth
#

Op

silent loom
#

Hello guys, just found this gem on the injective documentation:
https://docs.injective.network/develop/inEVM/
https://calderaxyz.gitbook.io/injective-documentation/getting-started/deploy-on-inevm

But there are things I'm not sure to clearly understand, can you help me with that? Because it's part of Injective documentation I think you have information about it.
So, inEVM is a blockchain own by Caldera? I'm right?
How injective users can use it, transparently, without switching to the Caldera blockchain?
I mean, my dapp is currently using Cosmowasm and is on the Injective mainnet. But it would be great to develop feature in Solidity because I already have knowlegde in it. How can I provide services for my users on Injective with the inEVM?

topaz seal
humble crescent
topaz seal
silent loom
limpid dragon
#

how build?

ionic oxide
limpid dragon
#

thank you bro!

#

i try make this

floral bay
#

Hi

topaz seal
tiny flume
#
const accountDetailsResponse = await chainRestAuthApi.fetchAccount(
    address
);```
I am using above code to get account details.
It used to work but now I get cors error.
How to resolve it?
astral magnet
lime ruin
bleak shard
sleek bear
#

I'm trying to send a signed tx and keep getting errors.
Currently I call prepareTxRequest where I get the prepareTxResponse with an attribute chainId: 'injective-1"
When I send this response into broadcastTxRequest I get an error signature verification failed: failed to parse chainID: injective-1: strconv.ParseUint: parsing "injective-1"
Anyone experienced this error before?

#

I tried both Network.MainnetSentry and Network.Mainnet8ks

topaz seal
topaz seal
# bleak shard I am using Injectivelabs/sdk-ts I can broadcast them separately, but requirement...

From the moment you are sending two separated transactions there is no guarantee both are going to end up included in the same block (chances are they will, but they could en up in different blocks too, depending on the validator node's mempool state).
You could try granting permissions to execute the actions you need to do from the two account into the same grantee account (a third account you will use to broadcast the transactions only) and then from the grantee account broadcast a single TX with two MsgExec messages each executing the actions (through Authz) for each of the granter accounts.

topaz seal
sleek bear
#

@topaz seal I used getEip712TypedData instead of prepareTxRequest and txRestClient.broadcast instead of transactionApi.broadcastTxRequest and that solved the issue

minor badge
#

Hey, I’m working on uploading a smart contract to mainnet that needs to go through the governance process. Is it possible to get some assistance with this?

topaz seal
tall plover
#

Any one can help me with "Rectification" of mi APIs with one of the contracts on Injective?

lime ruin
#

That is a scam link, please block them, the official team of any support never sends you private messages.

tall plover
#

Its from their official Discord. The one on twitter

lime ruin
brittle skiff
#

hi

feral tulip
#

gm ninjas. trying to receive some inj to my keplr wallet and receiving 'no healthy upstream' message - can someone help please?

ionic oxide
feral tulip
raven merlin
#

Hi guys anyway to transfer an NFT through a wallet?

wraith moss
#

I want to become a creator who can help me out

sharp niche
#

Please what is injective ash? Please

minor badge
#

It’s not very long but want to make sure I’m not missing anything

topaz seal
topaz seal
cinder aurora
#

Heyy man

#

Iam here what should I doo in here

lime ruin
raven wharf
#

Hey fam, is there any good starter frontend for React/Next.js ? The counter example looks to have last been updated last year, does it still follow the latest best practice?

lime ruin
raven wharf
silent loom
topaz seal
#

Don't spam in this channel or you will get banned
@lime mountain @ionic oxide @plush oyster

toxic forge
limpid dragon
#

They have isuse with build?

zinc spade
#

Could you please provide Factory/Router address of native INJ? Would like to add chain on Dextools

coral dew
#

hi builders

#

how can we verify our cw20 token??

tulip shard
#

is there a demand and place for gaming on injective? seems like most of the emphasis is on financial?

topaz seal
toxic forge
toxic forge
#

Honestly, in my non-traditional perspective, there isn't much difference between trading in financial markets and games. The differences are, in my opinion, surface level mostly, consisting of differences in UX and legal technicalities. I'm really keen myself on pursuing social/multiplayer trading games and GameFi on Injective because of the great opportunities that exists to tap into Injective's native order book and other defi modules

#

If you need any help bootstrapping your dapp or project, lemme know and I'll try to help

placid grotto
#

because you need to use bech32

muted gazelle
narrow saffron
#

Hey Guys, I'm intrested in launching an NFT project on Talis, looking for people involved in the NFT space on INJ in order to make collabs ecc..

narrow saffron
buoyant jewel
#

Injective is not a protocol fam, it's a blockchain

small totem
little mesa
lime ruin
little mesa
#

the TIA market is stuck on BUY: 19.243 and SELL: 19.2470 same as the INJ market, im using indexerGrpcSpotApi.fetchOrderbookV2(marketId)

#

const indexerGrpcSpotApi = await new IndexerGrpcSpotApi(network.indexer);

#

it happened now it was working fine

lime ruin
#

I just tested on my end with both Network.Mainnet and Network.MainnetSentry and it's returning correct response without issues.

little mesa
#

thank you

empty kettle
#

Hello,
I am having the issue with testnet.
I am tryng to query the balance of wallet using injective-ts .
But, the grpc call gives me back the error.
Can anyone help me why?

The TS code is

  const endpoints = getNetworkEndpoints(Network.Testnet);
  const chainGrpcBankApi = new ChainGrpcBankApi(endpoints.grpc)
  let bal = await chainGrpcBankApi.fetchBalances(ADDRESS);
  console.log(bal);

The error msg is

  type: 'grpc-unary-request',
  code: -1,
  originalMessage: '',
  name: 'GrpcUnaryRequestException',
  errorClass: 'GrpcUnaryRequestException',
  context: 'AllBalances',
  contextModule: 'chain-bank'
main rivet
#

Hello,
the above issue is same for me with different error
please help @topaz seal

JS code
const { IndexerGrpcAccountPortfolioApi } = require ('@injectivelabs/sdk-ts')
const { getNetworkEndpoints, Network } = require ('@injectivelabs/networks')

const endpoints = getNetworkEndpoints(Network.Testnet)
const indexerGrpcAccountPortfolioApi = new IndexerGrpcAccountPortfolioApi(
endpoints.indexer,
)

const fetchBlance = async() =>{
const injectiveAddress = 'inj1cw2kfaxe9gze83wm8ujx2s4090k3vw659yh20a'

const portfolio = await indexerGrpcAccountPortfolioApi.fetchAccountPortfolioBalances(
injectiveAddress,
)

console.log(portfolio)
return portfolio

}

fetchBlance()

#

error :
type: 'grpc-unary-request',
code: -1,
originalMessage: '',
name: 'GrpcUnaryRequestException',
errorClass: 'GrpcUnaryRequestException',
context: 'AccountPortfolio',
contextModule: 'indexer-portfolio'
}

main rivet
# lime ruin Try with `Network.TestnetSentry`

getting error:

type: 'grpc-unary-request',
code: -1,
originalMessage: '',
name: 'GrpcUnaryRequestException',
errorClass: 'GrpcUnaryRequestException',
context: 'AccountPortfolio',
contextModule: 'indexer-portfolio'
}

#

I think TESTNET faucets and links are not operationable right now..😑

empty kettle
glad creek
#

Hi, everyone
I am a passionate dev, so far attended various kinds of sol/evm projects.
so if you have some recommendations or looking for extra devs, I'd love to collaborate together. 🤝

main rivet
#

then soove out the above problems @glad creek

lime ruin
fossil condor
#

I want to fetch logs of the uploaded contract by txhash.
injectived query tx 53ADCC752977F306B07BE9B9DEB0B6BA446A28B85605FC2FF0F0F3CF0DAD92FA --node https://k8s.testnet.tm.injective.network:443 --output json | jq '.logs'
But the error persists on my end as you can see in the image attached.
Is there anyone who can help me with this error?

sinful zealot
#

what up friends

#

can i get an example of collecting a fee from funds and forwarding that on

heavy egret
#

Hey guys,
I need an API function that will provide me with the latest NFT burns on the Injective network.
Is there any possibility for that?

sinful zealot
#

Nvm I got it

#

If anyone is looking for injective contract dev lmk

small totem
topaz seal
topaz seal
topaz seal
fossil condor
fossil condor
# topaz seal Yes, correct endpoints https://docs.injective.network/develop/public-endpoints/#...

This example illustrates the structure of a basic smart contract. The counter website allows you to interact with an instance of the smart contract on the Injective Testnet. If you have prior CosmWasm smart contract experience, feel free to skip this section.

heavy egret
lime ruin
fossil condor
fossil condor
lime ruin
fossil condor
tall plover
#

Ninjas time

small totem
fossil condor
topaz seal
#

Please provide the error log again

empty edge
#

Guys, there is an easy way to burn tokens?

#

Like sending to 0x00000000

ionic oxide
# empty edge Guys, there is an easy way to burn tokens?

Every week, 60% of the accumulated trading fees transform into a pool of assets that's up for auction.

Injective Blog

Injective today is releasing its largest tokenomics upgrade yet which can dramatically increase the amount of INJ burned weekly.

Now all dApps built on Injective can contribute to the INJ burn auction with no limit to how much of their fees they wish to burn. In turn, this can lead

#

Please check the docs and the article for further info

empty edge
#

Ty!

empty edge
topaz seal
#

Sending tokens to the auction will not cause those tokens being burnt. They will be acquired during the acution by the winner bidder

#

To burn tokens created with the TokenFactory you can use the logic explained in the documentation pages

#

To burn CW20 tokens (if possible) should be done following the logic in the CW20 contract used to create them

#

Transfering tokens to the address that would represent the "zero" address in Etherum will not mark the tokens as burnt in Injective

#

They will just be unavailable

fossil condor
# topaz seal Please provide the error log again

This is what I am getting when I run injectived query tx 53ADCC752977F306B07BE9B9DEB0B6BA446A28B85605FC2FF0F0F3CF0DAD92FA --node https://k8s.testnet.tm.injective.network:443 --output json | jq '.logs' on my end.
Also it was the same even though I used https://testnet.sentry.tm.injective.network:443 instead.

topaz seal
fossil condor
#

@topaz seal I am getting another error now.
injectived query tx 76367BBB5266E04EE0A09F8B66A0186E9EE7A6492971AA54B57A481BACBCF713 --node https://testnet.sentry.tm.injective.network:443 --chain-id injective-888 --output json | jq -r '.logs[0].events[-1].attributes[0].value'

topaz seal
# fossil condor okay, got it I will try it now

The following request works correctly on my side. Please check you are not typing anything incorrectly

injectived query tx 76367BBB5266E04EE0A09F8B66A0186E9EE7A6492971AA54B57A481BACBCF713 \      
--chain-id "injective-888" \
--node https://testnet.sentry.tm.injective.network:443 --output json
fossil condor
#

would you let me know what it shows on your end?

topaz seal
fossil condor
#

This is the version on my side.

#

@topaz seal what is your version on your end?

topaz seal
fossil condor
empty kettle
#

I have one question.
How can I query the market status, like liquidity?
For example, I'd like to query the liquidity of INJ/USDT spot market.
I checked the injective-ts doc, but not found what I want.
What should I do?

hasty fulcrum
#

anyone got experience with implementing cw2981-royalties for minting nfts? I'm not sure how to implement it with a cw721-base

topaz seal
glad creek
empty kettle
topaz seal
compact wind
#

I submit proposal testnet can see hash response but not saw on hub. Please advise:

yes XXX | injectived tx wasm submit-proposal wasm-store artifacts/cw.wasm
--title="Title of proposal - Upload contract"
--summary="Description of proposal"
--instantiate-everybody false
--instantiate-anyof-addresses='injADDRESS'
--broadcast-mode=sync
--chain-id=injective-888
--node=https://testnet.sentry.tm.injective.network:443
--deposit=50000000000000000000inj
--from='injADDRESS'
--gas=100000000
--gas-prices=500000000inj
--yes
--output json

topaz seal
compact wind
# topaz seal - What is the result of that execution? - Why are you sending a governance propo...

Thanks for your reply.
#1) result of exec like below, but I check on explorer hash not exist and on HUB not see proposal.
{"height":"0","txhash":"4CB41AE3922E93B1238F484881BCA3FDDEE9336F56D59DEAD376C3BFBF91D489","codespace":"","code":0,"data":"","raw_log":"[]","logs":[],"info":"","gas_wanted":"0","gas_used":"0","tx":null,"timestamp":"","events":[]}

#2) I submit on mainnet also same issue, just change 3 values:

--chain-id=injective-1
--node=https://sentry.tm.injective.network:443 443
--deposit=10000000000000000000inj \

topaz seal
compact wind
#

Ok let me try node without port 443, that make sense for https.

topaz seal
#

oh, it is not pasting correctly

#

https://sentry.tm.injective.network:443

#

there we go

#

But the correct node is in the documentation page. You should be getting them from the docs

compact wind
#

I use RPC but not work

topaz seal
# compact wind I use RPC but not work

Could you please share the result of executing this against mainnet? What is the public address of the account you are using to send the code? Why do you specify an incorrect "gas-prices"? why do you specify an incorrect deposit amount?

compact wind
raven merlin
#

I need to find a way to collect the data from inj api - It's unclear how to get more then one page of transactions to a smart contract

#

Sorry if this has been asked before, I cant find info on this

lime ruin
royal laurel
#

Anyone wanna partner up to create #1 pfp collection on Injective? Art studio here.

lime ruin
# lime ruin Here are the TS docs for fetching them: - https://docs.ts.injective.network/quer...

For pagination, it is in the code example in the docs above for TS SDK.
As for the gRPC Indexer endpoint, it has a query parameter which is skip which lets you decide how many transactions you want to skip, there's a limit parameter as well which lets you decide how many transactions you want per page.

For example:

https://sentry.exchange.grpc-web.injective.network/api/explorer/v1/contractTxs/{contract-address}?skip=10&limit=10
#

So for example you can set the limit to 20 then to increase pagination you can increase the skip by your limit for next pages.

raven merlin
#

Thnx @lime ruin!

stark oasis
#

Is there a way to generate an unpredictable random number in injective cosmwasm

#

or is there any vrf available

fossil condor
#

I defined a variable token1_denom with type CW20::Denom in the InstantiateMsg struct.
When I instantiate the contract using injectived, I set the msg like '{"token1_denom":{"native":"INJ"}, ....'.
But it occurs the error like the following.

Error: rpc error: code = Unknown desc = [reason:"instantiate wasm contract failed" metadata:{key:"ABCICode" value:"4"} metadata:{key:"Codespace" value:"wasm"}]: rpc error: code = Unknown desc = failed to execute message; message index: 0: dispatch: submessages: Error parsing into type test_contract::msg::InstantiateMsg: missing field `token1_denom`: instantiate wasm contract failed [!injective!labs/wasmd@v0.45.0-inj/x/wasm/keeper/keeper.go:321] With gas wanted: '50000000' and gas used: '250555' : unknown request

Is there anyone who can help me to resolve this error?

stark oasis
fossil condor
minor badge
#

does the 3 day period of posting the proposal as a commonwealth draft apply for a smart contract?

empty kettle
raven wharf
empty kettle
lime ruin
void wind
#

GMMM team, I'm Howard from The Junior.
We are building token distributor on INJ: https://tokendistributor.thejunior.xyz/

Currently, we would love to get cw20 balance on INJ. We usually use Get portfolio API to get token list but this can't get cw20 token balance:
https://docs.ts.injective.network/querying/querying-api/querying-indexer-portfolio

I see that there is API to get cw20 balance:
https://products.exchange.grpc-web.injective.network/api/explorer/v1/wasm/inj19uk2gz5rn0f96p0phcgxmjzldx298sqywgfusl/cw20-balance

Could you please tell me how to use this api. Thank you.

lime ruin
#

Just change the endpoint to the sentry one.

#

The product endpoint is not public I think.

void wind
#

thanks fam. let me try.

lime ruin
#

It's the last code example in the docs above.

fervent bay
#

hi seems like that the official GRPC endpoint stoped working.

from sdk-ts when msgBroadcaster.broadcast( throws every time this error

  type: 'grpc-unary-request',
  code: -1,
  originalMessage: 'The product is experiencing higher than usual demand. Hang tight, engineers are doing their best to improve the performance and efficiency.',
  name: 'GrpcUnaryRequestException',
  errorClass: 'GrpcUnaryRequestException',
  context: 'Account',
  contextModule: 'chain-auth'

i already tried to overwritte the grpc endpoint with a self grpc but so far no success

any help to be able to broadcast?

topaz seal
topaz seal
#

there should not be any issue broadcasting a TX through your private node, unless it is not running or is not connected to any peer. You should check the status of your node

fervent bay
topaz seal
fervent bay
hasty fulcrum
#

i'm trying to mint an nft using a cw721 contract, i'm getting an error saying:

here's my function that i'm using, it takes the collection and the recipient, recipient isn't the contract minter but it should receive the nft, the minter is a smart contract that i built which i implement this function inside of, inside of my own contract.

i'm not sure, am i missing a step that would make my contract sign the msg or something?


pub fn mint_token(collection: &Collection, recipient: Addr) -> Result<CosmosMsg, ContractError> {
    // Init royalty extension

    let extension = Some(Cw2981Metadata {
        royalty_payment_address: Some(collection.royalty_wallet.clone().to_string()),
        royalty_percentage: Some(collection.royalty_percent),
        ..Cw2981Metadata::default()
    });

    let mint_msg = Cw2981ExecuteMsg::Mint {
        token_id: collection.next_token_id.to_string(),
        owner: recipient.to_string(),
        token_uri: Some(create_token_uri(
            &collection.token_uri,
            &collection.next_token_id.to_string(),
            &collection.iterated_uri,
        )),
        extension,
    };

    let callback = Cw721Contract::<Empty, Empty>(
        collection.cw721_address.clone().unwrap(),
        PhantomData,
        PhantomData,
    )
    .call(mint_msg)?;

    Ok(callback)
}
topaz seal
topaz seal
stark oasis
#

It is like

{ "denom" : "tokenAddress", "amount" : 100000}

fossil condor
#

are you sure?

stark oasis
#

just noticed

#

can u send the Denom struct

fossil condor
#

I attached already

stark oasis
#

do you have a struct named "Denom"

fossil condor
raven merlin
#

can anyone help with maybe some parameter info or names we are missing for querying the injective api -
so far only skip and limit work, other parameters don't - fromNumber /from specifically - and it seems there is no option to sort transactions of filter them? would be easy to fix if you can sort them in ascending order...

also there is an 'after' param - what to put in it? tried with transaction number (no luck) - this would fix our issue if we could say - give me transactions after so and so.

#

this is just to test in vsc

raven merlin
#

thanks, on it

fossil condor
fossil condor
#

@topaz seal Are you still around here now?

topaz seal
#

I have already tagged Markus, why are you tagging him again? Instead of getting his attention faster, you will cause him not to reply at all. Please don't do that

humble crescent
#

Hello. To integrate inEVM into Routescan (https://routescan.io), we need to provide an archive RPC with debug trace for testing. Where can I find this information?

topaz seal
#

Not sure about that. InEVM is implemented by Caldera as a kind of chain on top of Injective chain. You should check that out with Caldera team

candid viper
#

what language for inj dev?

candid viper
#

is that true what on Injective used are: Go, TypeScript, Rust, JavaScript?

candid viper
lime ruin
candid viper
lime ruin
candid viper
lime ruin
# candid viper thank you, but no videos?)

There's a playlist for hackathon which covers tutorials for building on Injective: https://www.youtube.com/playlist?list=PLTS_stt4XpDC3isu2cnBGpfviy3y7_Egu
The playlist is quite old so would advise to still cross check with documentation for updated information.

ornate agate
#

hi, i have a trouble integrating token factory contract in my contract, bc currently i only support erc20 token, ibc token and native inj.

is it possible to create any of these token standarts as in token factory example ? https://github.com/CosmWasm/cw-plus/tree/main/packages/cw20

i want to create wrap token after receiving token factory and then operate as a erc20 token or ibc token. is that possible to issue custom erc20 or IBC token ?

thanks for responce in advance

GitHub

Production Quality contracts under open source licenses - CosmWasm/cw-plus

fossil condor
#

I can get a transaction hash after uploading the smart contract to testnet using node https://testnet.tm.injective.network:443.
But I cannot find that transaction at all by its hash.
I get the error as you can see in the image.
Is there anyone who can help me with this error?

topaz seal
fossil condor
#

Is there anywhere I can thumb up for you? 😆

#

@topaz seal But the issue persists even I use https://testnet.sentry.tm.injective.network:443.

injectived tx wasm store release/test_contract.wasm --from testdream --node https://testnet.sentry.tm.injective.network:443 --chain-id injective-888 --gas-prices 9000000000000000inj --gas auto --gas-adjustment 15 --output json -y | jq -r '.txhash'

This is the command I executed.

topaz seal
fossil condor
topaz seal
#

Also please share the result or executing the command. Without that there is not much we can really use to investigate

fossil condor
#

And then

injectived query tx C00B5C82AB8809D449DC542E909C267CBA189D4CEAC4FFB16B5D5AF1AEB7490D --node https://testnet.sentry.tm.injective.network:443 --chain-id injective-888 --output json

The result is:

Error: error in json rpc client, with http response metadata: (Status: 200 OK, Protocol HTTP/1.1). RPC error -32603 - Internal error: tx (C00B5C82AB8809D449DC542E909C267CBA189D4CEAC4FFB16B5D5AF1AEB7490D) not found
Usage:
  injectived query tx --type=[hash|acc_seq|signature] [hash|acc_seq|signature] [flags]

Flags:
      --grpc-addr string   the gRPC endpoint to use for this chain
      --grpc-insecure      allow gRPC over insecure channels, if not TLS the server must use TLS
      --height int         Use a specific height to query state at (this can error if the node is pruning state)
  -h, --help               help for tx
      --node string        <host>:<port> to Tendermint RPC interface for this chain (default "tcp://localhost:26657")
  -o, --output string      Output format (text|json) (default "text")
      --type string        The type to be used when querying tx, can be one of "hash", "acc_seq", "signature" (default "hash")

Global Flags:
      --chain-id string     The network chain ID
      --home string         directory for config and data (default "/home/xdev/.injectived")
      --log-format string   The logging format (json|plain) (default "plain")
      --log-level string    The logging level (trace|debug|info|warn|error|fatal|panic) (default "info")
      --trace               print out full stack trace on errors
topaz seal
fossil condor
topaz seal
fossil condor
coral flame
#

"Error: error unmarshalling: invalid character '<' looking for beginning of value". I am getting this error while trying to store my code using injectived on the testnet. It was working properly few days back.

fossil condor
topaz seal
fossil condor
topaz seal
#

Yes the TX identifier for you code store command

fossil condor
topaz seal
# coral flame This is the screenshot.

Try to take a look at the documentation page before doing anything. There is a page that list all official public endpoints both for mainnet and testnet. If you don't use the valid endpoints, any command you execute will fail

topaz seal
coral flame
coral flame
topaz seal
coral flame
# topaz seal My previous response still remains: you are not using the official endpoints

This example illustrates the structure of a basic smart contract. The counter website allows you to interact with an instance of the smart contract on the Injective Testnet. If you have prior CosmWasm smart contract experience, feel free to skip this section.

fossil condor
topaz seal
topaz seal
fossil condor
coral flame
# topaz seal Please take a look at this https://docs.injective.network/develop/public-endpoin...

It is working now when I changed the endpoint. Would appreciate if you could update this documentation on your site - https://docs.injective.network/develop/guides/cosmwasm-dapps/Your_first_contract_on_injective/. In the document, it is referring to k8 endpoint.

This example illustrates the structure of a basic smart contract. The counter website allows you to interact with an instance of the smart contract on the Injective Testnet. If you have prior CosmWasm smart contract experience, feel free to skip this section.

swift crown
#

has anyone implimented cw404? Trying to find a repo for it, but can't seem to find it.

warm fossil
#

@topaz seal , Can i ask u some questions about deployment on mainnet ?

lime ruin
warm fossil
#

I have built smart contract for new project about staking. but in this project we need to deploy many smart contract (with same).
in this case, do i need to request governance every time ? or is there any other ?

lime ruin
#

For testnet you can directly do it.

warm fossil
#

but I need to upload many times , every times do i need to raise a governance proposal ?

topaz seal
warm fossil
topaz seal
warm fossil
#

is that possible ?

topaz seal
#

You need a governance proposal to upload a new contract code.
You don't need a governance proposal to instantiate a new contract from an already uploaded code

frosty kiln
main rivet
#

where would I get the TESTNET balance?

#

@frosty kiln

main rivet
#

its not working...I am in queue from last 30 mins

#

@austere bobcat

austere bobcat
main rivet
#

can you provide me here..if I will give the address?

austere bobcat
lime ruin
tame rapids
#

What's happening here

#

Here's really dry

slate elk
#

hey guys⚡, i was wondering is there any way to take snapshot of all injective stakers for all validators combined 🤔

lone kraken
#

hey, I'm using @injectivelabs/sdk-ts and I was wondering if there is any way to detect live switching wallet to update my address

topaz seal
topaz seal
# lone kraken yes, exactly

I think you are misunderstanding the purpose of Injective SDK. It is build to assist in the communication between apps/sites and the chain. It is not designed to assist on adding UX functionality

lone kraken
tall plover
#

Hey Ninja's I have a question about this part. I have --amount on 60INJ and --min-self-delegation=60000000000000000000 why did I get the error! A little bit confused right now on cli

sick dust
#

I'm trying to get historical funding rates, using this code from the api docs like so:

    # select network: local, testnet, mainnet
    network = Network.testnet()
    client = AsyncClient(network)
    market_statuses = ["active"]
    quote_denom = "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5"
    markets = await client.fetch_derivative_markets(market_statuses=market_statuses, quote_denom=quote_denom)
    # print(markets)

    # # # Get funding rates for a specific market
    market = markets['markets'][0]
    end_time = dt.datetime.utcnow()
    start_time = end_time - dt.timedelta(days=1)
    # Convert datetime to timestamp in milliseconds
    end_time = int(end_time.timestamp() * 1000)
    start_time = int(start_time.timestamp() * 1000)

    pagination = PaginationOption(start_time=start_time, end_time=end_time)
    if market['isPerpetual']:
        market_id = market['marketId']
        funding_rates = await client.fetch_funding_rates(market_id=market_id, pagination=pagination)
        df = pd.DataFrame(funding_rates['fundingRates'])
        # drop marketId and convert timestamp to datetime rounded to seconds UTC
        df.drop(columns=['marketId'], inplace=True)
        df['timestamp'] = pd.to_datetime(df['timestamp'], unit='ms').dt.round('s')
        # rename timestamp to ts
        df.rename(columns={'timestamp': 'ts'}, inplace=True)
        print(df.head())
        print(df.tail())
        print(df.info())


if __name__ == "__main__":
    asyncio.get_event_loop().run_until_complete(main())```
#

Sometimes this code works, but more often it doesn't and gives a RuntimeError: Error fetching exchange cookie (Metadata(())).
Note I've tried using network = Network.mainnet()
But that returns an empty market {}.
I've read others have gotten this error and it's because the public indexer is not great right now, and I should use a local one?
Here I think it shows how to set up a local indexer but I have to set up a local node first?
https://docs.injective.network/nodes/RunNode/local
I have to set up something called a 'key ring'...I'm not a crypto dev I'm just a data scientist.
I'm not trying to make a ton of calls to the api, like once an hour I'd like to get the funding rates for all perps.
Is there a way to do this using public indexers so I don't have to go down too much of a rabbit hole here?
Thanks

Now that the keyring is populated, it's time to see how to locally run an Injective node. This guide will walk you through the process of setting up a standalone network locally. If you wish to run a node on Mainnet or Testnet, please follow the relevant guides:

topaz seal
sick dust
zinc thunder
#

hey has the 404 cw standard been opensourced somewhere?

#

thanks

zinc thunder
#

@austere bobcat any news about 404cw?

austere bobcat
dawn bramble
#

been redirected here - does anyone have working examples of calling injective smart contracts with typescript?

topaz seal
topaz seal
slate elk
topaz seal
reef fiber
#

what's a reasonable price to pay to have a historical l2/l3 order book and trades data scraped from INJ's helix? I assume that would be possible since everything on the DEX should be on the blockchain right?

small totem
#

It could vary in price depending on factors like the volume of data and the complexity of scraping

topaz seal
reef fiber
small totem
#

It depend on factors like network activity and block size

small totem
pastel jasper
#

Have a quick question. Looks like Injective made some changes recently to how you get metadata.

So previously I was using Denom client to fetch token metadata, (creator, supply, and creator rights, etc). This used the token format as "factory/address/symbol", but now it seems token addresses are just"inj[address]".

So 2 main questions, are tokens that follow factor/address/symbol deprecated, or are they co existing, and how are we now able to fetch the equivalent metadata information with the new token contract, it wasn't clear in any of the docs?

lime ruin
craggy zealot
#

Yesterday, I tried a whole day to understand why it was not importing. Now i understood. Still not fixed.

pastel jasper
pastel jasper
#

So it the reason this token is failing is the fact this address is a "contract" (inj1zdj9kqnknztl2xclm5ssv25yre09f8908d4923)

shut canopy
#

hi, is there any active grant for an NFT project on INJ?

lime ruin
shut canopy
lime ruin
topaz seal
#

@lime mountain @ionic oxide @plush oyster we need your help here again to bann spammers

ionic oxide
#

Done

midnight osprey
zinc thunder
fringe mirage
willow tundra
#

inEVM testnet faucer does not seem to work?

plush oyster
willow tundra
#

can i get sent some tokens? i've been unable to reach the Caldera team

empty kettle
topaz seal
nova hull
pastel jasper
topaz seal
rapid siren
#

how would I know the liquidity on a market?

manic island
#

Hey. Im looking for dev rel team member to discuss deploy motoDEX (top3 game wordwide). Please DM me in TG alex12alex

manic island
crisp onyx
#

Hi, I am part of Venly (web3 infra) and I was wondering if a mod could bring me into contact with the right person to discuss a potential integration of Injective into our dev tools (WaaS, NFT API, Market API, ecommerce, Gaming SDK,...)

topaz seal
elder dune
#

@topaz seal @frosty kiln

warm fossil
#

I've got this error on my site. please help me to fix this error.

#

always I've got error on this line

lime ruin
warm fossil
lime ruin
#

To use the query you're using, the address which is passed needs to be registered on chain before you can query it else it'll return 404 response, the address should get registered when any transactions happen to that address.

sweet moat
#

Hey

#

Where's the CW404 contract code

sharp hull
#

Does anyone have an example project using WalletStrategy to connect to Metamask? I'm getting an error "pubKey does not match signer address" when running msgBroadcastClient.broadcast(). I'd like to refer to some other projects for guidance.

#

here is my code

#

here is error

topaz seal
sharp hull
topaz seal
warm fossil
fair berry
#

Anyone online?

#

What's the essence of this group?

austere bobcat
fair berry
#

Please what are we building and developing?
Sorry to ask

austere bobcat
fair berry
#

What's Dapps please?
I'm new to this whole space

lime ruin
fair berry
lime ruin
fair berry
#

Okay
Noted
Thanks

rapid siren
#

Or point me to relevant documentation

topaz seal
wheat nexus
#

Who should we contact for a manually upload of a contract after Governance Proposal is passed?

elder dune
#

is it doable ?

primal terrace
# topaz seal <@830127690840801300>

If a governance proposal is passed then your contract is already uploaded. You can find the Code ID from the explorer page or on-chain queries.

https://explorer.injective.network/codes/

@wheat nexus

Injective Explorer - Visualize and search for data on the Injective Chain

The Injective Explorer is an analytics platform that enables anyone to search addresses, trades, tokens, transactions, and other activities on the Injective Chain.

shut canopy
#

I am using injectived cli in a docker
I created a new wallet

  name: testuser
  type: local
  address: inj1huurgwdssfml20j7lmk5zq9nmsa5j5f9pj5wv9
  pubkey: '{"@type":"/injective.crypto.v1beta1.ethsecp256k1.PubKey","key":"A2VJavCjnjF7aLdVD17PgN5thfv0G+5tHNao6uo3dHW1"}'
  mnemonic: ""

and exported it
export INJ_ADDRESS=inj1huurgwdssfml20j7lmk5zq9nmsa5j5f9pj5wv9
and got faucet here: https://testnet.faucet.injective.network/
but its balance is still zero after all above

topaz seal
#

Dear members of the Injective community (@here):
We want to notify everyone that there is a new version of the Python SDK (v1.3.1). The new version includes a change that aligns the SDK to a change performed in the public load balanced servers, aiming to improve performance and availability in general.
If you are currently using the Python SDK, please make sure download the latest version (https://pypi.org/project/injective-py/).
Thank you very much for your attention.

gloomy hatch
#

Interesting

shut canopy
ionic oxide
#

Please have patience until a dev responds

topaz seal
#

!faucets

wild frigateBOT
frosty kiln
#

thats why I asked what error you have in Keplr

empty kettle
#

@primal terrace
Can you check the ibc channel for evmos?
I tried to use it again, and it fails.
Also, it would be much better if there is doc/website to show the open ibc channels of injective testnet.
FYI, I want to know if the channels are app module ones.
like this proto_msg type url "/ibc.applications.transfer.v1.MsgTransfer"

shut canopy
#

Hello @topaz seal , I tried here yesterday, but still 0 balance now

left plume
#

hi

vestal abyss
#

I am a Smart Contract & Web3 developer with 7 years experience.
Ready to craft decentralized wonders tailored to your project's needs, ensuring security, scalability, and innovation every step of the way.

Skillls

  1. Smart Contract : Ethereum, BSC, Polkadot, Tezos, Solana, Avalanche
  2. Web3 : Integrating DApps with blockchain networks
  3. Blockchain Architecture : Tailored to Specificc use cases
  4. DeFi : including DEXs, lending, borrowing, yield farming
  5. NFTs : Creating for digital art, gaming, and collectibles

Projects

  1. DeFi Applications
  2. NFT Marketplaces
  3. Supply Chain Management
  4. DAOs
  5. Decentralized Social Networks
lime ruin
strong pasture
#

by any chance do you guys need an intern? 😄

lime ruin
empty kettle
#

One question, where can I get the doc/code of cw404 standard?

topaz seal
# shut canopy

You have only two options: wait until that particular faucet has mor INJ available or use other faucet

shut canopy
topaz seal
#

!faucets

wild frigateBOT
topaz seal
shut canopy
shut canopy
#

and using docker env

topaz seal
topaz seal
austere bobcat
topaz seal
austere bobcat
primal charm
#

🧙‍♂️🤝

abstract thunder
icy lark
#

We are not getting any values of market spot and preps, could you please help me out even I have moved .env.example to .env also please check my .env file screenshots.
Please let me know if anything is wrong in .env file or we need to do any other configurations on my local.

hardy wraith
#

hi

#

i am building a dapp on injective, am founder of discordels, i have correctly successfully integrated keplr wallet in app
but leap giving problems.

Leap connection is done correctly, but in docs i not found any guide to make transactions with leap.

#

tried keplr handke transaction function, but it not seems to work with it

topaz seal
icy lark
#

Could anyone please share these endpoints ?

VITE_INDEXER_API_ENDPOINT=
VITE_SENTRY_GRPC_ENDPOINT=
VITE_SENTRY_HTTP_ENDPOINT=
VITE_SENTRY_REST_ENDPOINT=
VITE_EXPLORER_API_ENDPOINT=
VITE_CHRONOS_API_ENDPOINT=

#

These endpoints need to be set in .env file.

topaz seal
icy lark
topaz seal
icy lark
#

what else should i need to do ?

kind flare
icy lark
#

yes @kind flare I want to create my own infrastructure as custom and want to add spot pair and perps pair

#

Please suggest best way for this

topaz seal
icy lark
#

ok @topaz seal can you please suggest me how we can setup our own private node and indexer endpoints ?

icy lark
#

Ok i can see there how we can Join Injective Mainnet, And can you help me with indexer endpoints how i can setup them?

fossil condor
#

@topaz seal Hi Abel, how are you doing today?
Are you around here now?
I'd like to upload and instantiate a smart contract to the injective mainnet.
I had various test on the testnet already.
Would you let me know how long it takes to be deployed to the mainnet?

topaz seal
carmine temple
#

also trying out https://github.com/InjectiveLabs/injective-helix-demo, updated package.json to use latest dependencies matching injective-ts, but now getting error
"Cannot read properties of undefined (reading 'mainnetSentry')"
am very new at this, any hints on where I should look/read to resolve this? thanks

fringe valve
#

Can i write on contract cw20 on injective, even im not owner the contract?

pine tundra
#

I have problems with Staking Api. I'm using injective/sdk-ts with Mainnet enpoint to fetch staking data from injective. The thing is it's usually down very frequently, is there any alternative ways to get the data ? thank you

topaz seal
# fringe valve Can i write on contract cw20 on injective, even im not owner the contract?

Maybe my answer is not going to be useful since I am not sure what you mean with "write on contract cw20" (if you can clarify that the team will be able to provide a better answer). But initially when a contract logic is implemented each function in the contract will be configured as public or not. A public function will be callable by anyone, unless the function logic performs some caller validation.

topaz seal
bleak arrow
#

Use pyinjective lib, when try to connect stream_spot_orderbook_update() have error.

topaz seal
astral shard
#

Are there any known issues with mainnet api? (api.injective.network)

Looks like it started timing out or throwing http 503 errors a few hours ago

astral shard
#

k8s indexer endpoint would throw 503s at me, sentry would respond with weird 400 bad request errors

shut canopy
#

when is it available?

austere bobcat
shut canopy
#

tried, but coudnt get faucet

austere bobcat
shut canopy
fossil condor
#

@shut canopy Have you got the faucet?

empty kettle
shut canopy
fossil condor
shut canopy
fossil condor
pastel jasper
#

Quick question for the intective team. Just looking fro confirmation on my end. So a factory denom tokens (factory/address/subdemon) has the MsgMint and MsgBurn functionalities correct.

For CW20 tokens, from what ive read are not there in CW20 tokens (injaddress). Its that correct?

topaz seal
pastel jasper
topaz seal
#

CW20 tokens' functionality depend on their contract implementation

pastel jasper
hardy fable
#

Any devs or admin on? Have a serious problem that yous may be able to assist me with 🙏

lime mountain
#

hey, devs cannot help you with that, sadly you got compromised, only way to recover your staked INJ is withdrawing faster than the scammer

primal mesa
ebon karma
primal mesa
ebon karma
primal mesa
primal mesa
#

currently facing this

Error: error unmarshalling: invalid character '<' looking for beginning of value

when trying to upload the contract

yes password# | injectived tx wasm store /var/artifacts/cw404.wasm \
> --from=$(echo $INJ_ADDRESS) \
> --chain-id="injective-888" \
> --yes --gas-prices=500000000inj --gas=20000000 \
> --node=https://k8s.testnet.tm.injective.network:443
shut canopy
topaz seal
daring gorge
#

gm
I want to participate in the OLP program through the Black Panther Vault. I have already removed my address from Trade and Earn https://explorer.injective.network/transaction/DABD4CC1DEBA3F9034A29095B3B84FCE9B026D15F0D3D21DF24A711FD3A14871/ I have also deposited funds into the kuji/usdt Black Panther Vault https://explorer.injective.network/transaction/A23430633F9953833A6F241FD6B78D2EC4DF809D13D6421C8094269F116898C8/

However, I still see the following statuses on the OLP page:
Current Epoch Ineligible
Next Epoch Ineligible

Or should I check not my address, but the vault's address in the OLP checker?

primal mesa
#

Hello

My client shut down while I was using the docker.

How can I restart it because I was in the middle of setting a contract up

topaz seal
frosty kiln
#

Anyone here that would be interested in a Mito integration on a smart contract level?

lofty creek
#

If i deploy a token smart contract on cosmos, can I move it over on injective through IBC?

fast ocean
#

Hello, what's minimum deposit to upload contract to Mainnet?

topaz seal
granite robin
#

Where could such an error originate, I am using foundry and running a script. Is there a direction in which I could look more

lusty spruce
wheat nexus
#

We havent submitted our contract anywhere, we made a text proposal which require us to upload it manually. (proposal passed already)

lusty spruce
# lusty spruce Is there documentation about how to call the injective spot orderbook ? I would ...

I found the typescript sdk, but my question would be is it possible to call the spot orderbook module from contracts in inEVM, or does it have to go offchain ? Also, when making spot limit orders, do you have to provide and "lock" the tokens you buy/sell inside the orderbook, or can you send the tokens only when the order is filled ? I'm basically trying to make an amm dex connected in solidity connected to injective orderbook module

topaz seal
pseudo elk
#

Hello, do you have any Typescript/Javascript example on how to send a market order on Injective/Helix app? Thank you

pseudo elk
lime ruin
pseudo elk
wheat nexus
topaz seal
wheat nexus
topaz seal
# wheat nexus No. If you Read the information on Injective Hub about “Text Proposal” it says t...

That does not apply to code uploads, because there is no way for users to manually upload coad. Don't create a text proposal. Create a wasm-store proposal that will automatically store the code once the proposal is approved.
The process is described in the documentation https://docs.injective.network/develop/guides/injective-101/mainnet-deployment-guide

This guide will get you started with the governance process of deploying and instantiating CosmWasm smart contracts on Injective Mainnet.

wheat nexus
# topaz seal That does not apply to code uploads, because there is no way for users to manual...

Why is this not mentioned in the page where we create proposals?

What am I supposed to do now? We passed our governance, with text proposal which clearly states following "Propose ANY action on Injective. TextProposal defines a standard text proposal whose changes need to be manually updated in case of approval". As you can see on the image. "Any actions" should include upload of a contract?

empty kettle
#

@topaz seal
I have one question.
How can I query the whole tx info with tx hash?
For example, I'd like to see the whole error log of tx with tx hash.

topaz seal
topaz seal
topaz seal
topaz seal
wheat nexus
topaz seal
empty kettle
topaz seal
# empty kettle <@831364009877569538> I have more questions. I'd like to know if the `min_quant...

I would suggest reviewing a little bit more documentation about orderbook trading. I don't suggest doing any trade activity until you know what you are doing. All orderbook markets have a trading pair, and the base and quote tokens for the market remains the same. Also when you create orders, quantity is always for the same token (either buy or sell), and the price is always in the same token (either buy or sell).

empty kettle
lusty spruce
topaz seal
lusty spruce
wheat nexus
lime ruin
# wheat nexus I cant find anything in the doc about which proposal type of the 4 to select. Ca...

You don't have to raise a governance proposal through the Injective hub, it needs to be done through the CLI to upload your wasm contract code to the network.
https://docs.injective.network/develop/guides/injective-101/mainnet-deployment-guide#submit-a-code-upload-proposal-to-injective-mainnet

This guide will get you started with the governance process of deploying and instantiating CosmWasm smart contracts on Injective Mainnet.

wary haven
#

Hello, I have a question that might seem basic, as I'm a beginner.

I've deployed my contract on the Injective testnet. In my application, I need to obtain USDC approval from the user. On Ethereum, I would typically use the USDC address and its ABI, then call the approve function with the spender's address and the amount.

However, I don't have the USDC address for the Injective testnet. Could someone please provide it?
so that i can use balanceOf and approval functions

elder dune
hidden quiver
#

how can I simply verify a user and let them log in to my app, using the signArbitrary function ?

#

I've been trying to verify the message using the ADR-036 spec but I couldn't get it to work

#

verifyArbitrary from @keplr-wallet/cosmos library is also not working, getting an Unmatched signer error both there and on my own implementation

wintry gate
#

For the ADR-036 spec, make sure you’re following the guidelines for off-chain message signing, which includes using an empty memo, setting the nonce and sequence number to 0, and having an empty chain-id. https://docs.cosmos.network/main/build/architecture/adr-036-arbitrary-signature

If you’re encountering an Unmatched signer error,

it could be due derivation path, especially if you’re working with a network like Injective.

hidden quiver
#

yeah I've been doing everything correctly

#

getting the signature with window.keplr.signArbitrary

#

and verifying according to the spec

#

the same impl works on other cosmos chains

#

is there any working example that I can check?

wintry gate
#

if you want to look for test cases for the verifyArbitrary function in the @keplr-wallet/cosmos package,
I only know Keplr wallet documentation which provides guidance on how to detect Keplr and use its features.

which may include examples of test cases.

https://github.com/chainapsis/keplr-wallet/blob/master/docs/api/README.md

documentation also suggests using the verifyADR36Amino function in the @keplr-wallet/cosmos package or your own implementation instead of using the verifyArbitrary API.

But worry not senior devs will soon resolve ur query wait for them to rpl. MeguminThumbsUp

GitHub

The most powerful wallet for the Cosmos ecosystem and the Interchain - chainapsis/keplr-wallet

warm fossil
#

I've developed nft staking smart contract, and deployed at testnet. but other users can not execute my smart contract message. shows this message (below image) when other user execute message on my smart contract.

#

please help me on this , how to fix that.

wintry gate
#

make sure that your smart contract’s execute function does not restrict message execution to only the contract owner or specific addresses.

Set Permissions to grant execute permissions to any address.

For detailed guidance, you can refer to the Injective documentation on developing smart contracts.

https://docs.injective.network/develop/guides/cosmwasm-dapps/Your_fist_contract_on_injective/

This app example is created to illustrate the structure of an application with smart contracts and a basic front end to interact with it.

warm fossil
wintry gate
warm fossil
wintry gate
warm fossil
warm fossil
#

when I've inited my smart contract, this logs attached, is that right?

warm fossil
#

how to make smart contract for every users can execute my smart contract message?

hidden quiver
#

is there anyone who knows how this works? something this easy shouldn't have taken this long to develop 🥲

hidden quiver
#

pubkeyToAddress function for example returns a different wallet address than the signing address for a signature

#

I think it might be because address calculation is done using ethsecp256k1 on Injective but the current impls expect secp256k1

open rivet
#

Hey there, using the TS SDK, and given an address, a signature and a message, what's the best way to verify that the signature is valid for those parameters? Probably the same question that was asked above ^

coral dew
#

const web3 = new Web3(window.ethereum);

how can i change this to injective public API?

i dont see any web3 provider provide api for injective so far.

open rivet
wintry gate
# coral dew const web3 = new Web3(window.ethereum); how can i change this to injective pu...

you don’t need a Web3 provider like you would with Ethereum’s window.ethereum. Instead, you can use the Injective API directly, which supports both REST and gRPC protocols. Injective also provides SDKs in Python, Go, and TypeScript.

Maybe this will help
API ARTICLE: https://blog.injective.com/en/injective-public-api-launch/

( You can see github resources in the article)

Injective Blog

The Injective Public API has now been released! With Injective’s architecture, everyone can permissionlessly engage in decentralized exchange.

vivid elbow
kind flare
#

We don’t have any other utilities for this particular case

open rivet
#

I'd like to do this in an app where the user can authenticate using their Injective wallet

#

so wallet signs message, backend checks if signature matches message and signer

open rivet
kind flare
open rivet
#

"to recover the public key" : this is the point lmao -> How?

kind flare
#
import base64
from cosmospy import offline_signer

# Example TxRaw and Signature
tx_raw = "YOUR_TX_RAW_BASE64_ENCODED_STRING"
signature = "YOUR_SIGNATURE_BASE64_ENCODED_STRING"

# Decode TxRaw
decoded_tx_raw = base64.b64decode(tx_raw)

# Extract Signature
decoded_signature = base64.b64decode(signature)

# Extract public key
public_key = offline_signer.recover_public_key(decoded_tx_raw, decoded_signature)

print("Public Key:", public_key)

In this pseudocode:

  • YOUR_TX_RAW_BASE64_ENCODED_STRING is the base64 encoded string of your TxRaw.
  • YOUR_SIGNATURE_BASE64_ENCODED_STRING is the base64 encoded string of your signature.
    Make sure to replace these placeholders with actual values from your transaction.

You may need to install the cosmospy package or any other relevant library for working with Cosmos transactions and signatures. Make sure to check the specific documentation for the library you choose to use. Also, the actual implementation might vary slightly based on the libraries and tools you're using.

open rivet
#

Alright so your sdk only supports EVM wallets although I guess 99% of your users and dapps use cosmos wallets
Ty ChatGPT!

next smelt
#

I am just curious how to creae dapp to swap tokens on injective chain, what doc is good for me?

#

If there is someone who has exp of this, plz help me

wintry gate
# next smelt I am just curious how to creae dapp to swap tokens on injective chain, what doc ...

u can checkout https://docs.injective.network/

Documentation homepage offers a wide range of developer guides and resources to help you build powerful financial dApps. Its very user frndly.

Also you can check https://docs.injective.network/develop/guides/exchange/ ( If you’re specifically looking to build an orderbook exchange dApp)

Injective is a lightning-fast, interoperable, layer one blockchain optimized for building premier Web3 financial applications. Injective provides developers with robust plug-and-play modules such as a fully decentralized orderbook, binary options, real-world asset (RWA) module, and more, allowing developers to build a diverse array of sophistica...

As an incentive mechanism to encourage exchanges to build on Injective and source trading activity, exchanges that originate orders into the shared orderbook of Injective's exchange protocol (read more) are rewarded with $\beta = 40%$ of the trading fee from orders that they source. The exchange protocol implements a global minimum trading fee ...

next smelt
#

i have already checked

#

but unclear how to do swap

#

on evm, there is a protocol such like uniswap or pancake swap

#

so like this, should interact with individual smart contract or any other service?

next smelt
lime ruin
next smelt
#

since there are too man y things to ask or discuss

lime ruin
#

You can feel free to ask here so that your question is seen by most of the devs and anyone can try to help you, remember that if you get random private message or friend requests then block them, they are very likely a scammer.

next smelt
#

make sense

#

and thx for your effort

next smelt
#

could you help me abou these?

topaz seal
next smelt
#

yes, thx,
so MsgCreateDerivativeMarketOrder is function for create swap, right?

topaz seal
warm fossil
#

plz help me on this, I can't understand why this happened.

#

in the code, there is no checking owner information.

next smelt
warm fossil
#

the red marked part was run successfully with contract owner, but it has error when other users execute this msg on smart contract.
please help me how to fix that.

midnight sonnet
#

is the cw20-reflection token standard documented anywhere?

wintry gate
buoyant crown
#

I was trying the "Cosmwasm Deployment Guide on Testnet" and I get the following error in the step 1. I'm using WSL Ubuntu. It would be great if I get some help to resolve this error.

wintry gate
gentle dagger
#

need docs to start buildiong with injective :)) anyone here ?

lime ruin
# gentle dagger need docs to start buildiong with injective :)) anyone here ?

Injective is a lightning-fast, interoperable, layer one blockchain optimized for building premier Web3 financial applications. Injective provides developers with robust plug-and-play modules such as a fully decentralized orderbook, binary options, real-world asset (RWA) module, and more, allowing developers to build a diverse array of sophistica...

dawn arrow
#

Normal here lol

topaz seal
mortal kelp
#

Please dont spam this chat

gentle dagger
#

oh ok 😦 was asking

fossil condor
#

Is there anyone experienced with cosmwasm_std::CheckedMultiplyFractionError?
How can I handle both overflow and divide_by_zero errors after doing checked_mul_floor?

wheat nexus
#

What are we supposed to write in this field? “From your_key”

This is for Contract Instantiation Governance.

next smelt
#

i am going to swap token by interact dojo swap contract directly

#

but i cant see dojo contract code, so how to interact?

topaz seal
topaz seal
dark carbon
#

any official wrap station from native to cw20 or needs to be done a custom wrap contract?

lime mountain
empty kettle
#

Hello, one question
I am trying to query the B contract from A contract(cosmwasm) in the inj mainnet.
But, when I try to call the query in A contract, it gives me the following error

query wasm contract failed: Generic error: Querier contract error: codespace: wasm, code: 9

Can anyone let me know the reason?

thin karma
#

Ts indexer to fetch contract txs is throwing 502 error for days, any alternative endpoint to fetch txs for a sc

lime mountain
fossil condor
#

How can I get usdt test tokens in my keplr wallet?

topaz seal
fossil condor
topaz seal
fossil condor
topaz seal
#

Anyways, whatever works best for you

fossil condor
#

okay, got it
thanks

surreal flicker
#

It is so damn difficult to find the details of adding inevm to metamask in all the documents of inevm

surreal flicker
#

Makes it quite hard to trust inevm developers

#

They should also mention it if someone wants to add it manually

#

To be safe

topaz seal
empty kettle
#

I have question about this query
https://lcd.injective.network/swagger/#/Query/SpotOrderbook
Here, I can set the several optional params - limit, order_side, limit_cumulative_quantity, limit_cumulative_notional.
The issue is that I cannot get the query with order_side, limit_cumulative_quantity, limit_cumulative_notional.
When set order_side, the query gives error like "message": "strconv.ParseInt: parsing \"Sell\": invalid syntax",.
when set the limit_... params with string like "90.00000000000", the query gives error like math.legacydec is not supported.
I can't figure out how to set these params correctly.
Anyone can help me?
In addition, it would be best for me to know what would be the result when setting limit_... params. (order_side is pretty straightforward for understanding)
Maybe, @topaz seal can you give insight?

next smelt
#

i wanna use injective cli, but met some issue
is there anyone who has rich exp of inj cli

thin karma
#

How can I fetch sc txs ts indexer doesn’t work

topaz seal
empty kettle
# topaz seal The REST request is failing, I think a similar error that is making the Go SDK g...

Thanks! @topaz seal
Can you let me know the injective API documentation?
What I wanna know is how the limit_cumulative_quantity & limit_cumulative_optional params work.
For example, if I set the limit_cumulative_quantity=10000, would the query fetch the orders with same quantity - 10000? (let's assume I only fetch OrderSide::Sells if necessary)
Or it would fetch the orders of amount which is bigger or less than param quantity?

oblique copper
lime ruin
thin karma
#

But I want mainnet data

lime ruin
#

Network.MainnetSentry then.

#

In the same directory where you have the code for opting out.

#

Here's an exmaple .env file:

EXAMPLE_VAR="Example Value"
#

And the value as the value which you want that variable to be, the above script expects the variable to be the private key.

#

Also please proceed at your own risk and never share your private key with anyone.

#

You can test on testnet first to make sure everything works.

next smelt
#

I need help in the injective swap programatically

#

Is there anyone who has rich experience of this?

#

This is urgent task and if you fix, you can get reward

lime mountain
#

Injective swap? Would you please give us more details?

empty kettle
# topaz seal The REST request is failing, I think a similar error that is making the Go SDK g...

Thanks so much! @topaz seal
I succeeded to use the python sdk to query the orderbook.
Can you help me one more?
I'd like to know how exactly the limit_cumulative_quantity & limit_cumulative_notional filtering params work.
Other options(limit, order_side) are pretty clear for use.
But, I don't see how the helix markets filter the whole orderbook(all orders) with above optional params.
Can you indicate any reference or example?
Thx in advance!

topaz seal
devout totem
#

I wanna deploy contract to injective mainnet.

#

How can I deploy contract to mainnet?

topaz seal
#

You do that by submitting a governance proposal. The process is explained in the docs

gritty ember
#

hello, i'm trying to add my token metadata to the token.ts array. but i get a 403 when trying to push? do you know @lime ruin

pure prism
#

Hey! I am working for a multi-chain evm project that is launching a token on inEVM through LayerZero. Is it possible to set up a bridge to go from inEVM to INJ mainnet? If so what should my first steps be? Comfortable with both solidity and cosmwasm @topaz seal

next smelt
lime ruin
#

You likely don't have permission to directly push in the main repository.

gritty ember
fossil condor
#

what is the best rpc endpoint for uploading the smart contract to mainnet?

next slate
#

Hi, who can help me with the token launcher?

topaz seal
topaz seal
fossil condor
topaz seal
pure prism
fossil condor
topaz seal
raven merlin
#

hey guys SSL expired so nothing works :/

deep arrow
#

Hy huys, any project for crypto payment built on injective.

spice sail
#

I want to use multi send in typescript, anyone got an example?

This is how i do it rn but it seems not very fast and i read there is a multisend method

async function sendInjToMultipleWallets(wallets: string[], amount: number): Promise<string[]> {
  const network = Network.Testnet;
  const privateKeyHash = process.env.PRIVATE_KEY as string;
  const privateKey = PrivateKey.fromHex(privateKeyHash);
  const injectiveAddress = privateKey.toBech32();

  const msgBroadcaster = new MsgBroadcasterWithPk({
      privateKey,
      network,
      simulateTx: true,
  });

  const txHashes: string[] = [];

  for (const wallet of wallets) {
      const msg = MsgSend.fromJSON({
          amount: {
              denom: 'inj',
              amount: new BigNumberInBase(amount).toWei().toFixed()
          },
          srcInjectiveAddress: injectiveAddress, // Absenderadresse
          dstInjectiveAddress: wallet // Empfängeradresse
      });

      try {
          const result = await msgBroadcaster.broadcast({
              msgs: msg,  
          });
          const txHash = result.txHash;
          if (txHash) {
              txHashes.push(txHash);
              console.log(`Sent ${amount} to wallet ${wallet}`);
          } else {
              console.error(`Tx hash not found for ${wallet}`);
          }
      } catch (error) {
          console.error(`Eror while sending to ${wallet}:`, error);
      }
  }

  return txHashes;
} ```
topaz seal
#

It is a security measure to avoid trades at unwanted price levels due to volatility conditions.

spice sail
stuck fable
#

Testnet seems to be down.

ebon karma
stuck fable
soft flame
#

Hi, I want to create a token on Injective. I have found the tokenstation.app, but it seems it limits you in the tokenomics you can apply to the token. The tokenomics I have in mind require some more coding.

What would you guys recommend the way to go is? Can the code be altered (by me or a developer) if I create it through the tokenstation.app, or would you recommend to download Injectived and go from there with all the coding needed?

I can't code myself, but I have a great idea for a project, so help and advice would be very much appreciated. Thanks!

peak tapir
#

Hello,
Can you please help me with some questions on wasm contract deployment on mainnet?
I am working for a project that wants to airdrop a tokenfactory token through a smart contract. We already tested the contract successfully on testnet and want to deploy it on mainnet now.
It looks like we need to pass a governance vote according to https://docs.injective.network/develop/guides/injective-101/mainnet-deployment-guide/
But this leaves me with some questions I could not answer by searching through the docs:

  1. Do we really need to pass a governance vote? There are more contracts stored on-chain than governance proposals and the latest stored contracts are younger than the 4 day voting window. https://explorer.injective.network/codes/ Am I missing something?
  2. How does the governance proposal deposit work? Is it returned if the proposal is not vetoed?
  3. Do we even need a deposit? This one passed without having a deposit: https://hub.injective.network/proposal/358

The contract we are planning to use is pretty standard, but I could not find it's checksum already stored on mainnet: https://github.com/CosmWasm/cw-tokens/blob/main/contracts/cw20-merkle-airdrop/src/contract.rs

primal mesa
#

Hello how do I push to mainnet?

topaz seal
#

The different prices for a market (mid price, best bid, best ask) can be retrieved from the current market's orderbook

topaz seal
primal mesa
#

Sorry I mean deploy

topaz seal
primal mesa
topaz seal
#

Unless you provide all the info required for investigation (the actions you are performing and the full error log), we can't help you debug the issue

primal mesa
#
injectived tx wasm submit-proposal wasm-store /home/fave/cw404/artifacts/cw404.wasm \
--title "Title of proposal - Upload contract" \
--description "Description of proposal" \
--instantiate-everybody true \
--deposit=1000000000000000000inj \
--run-as [inj_address] \
--gas=10000000 \
--chain-id=injective-1 \
--broadcast-mode=sync \
--yes \
--from [YOUR_KEY] \
--gas-prices=500000000inj
#

this the command

#

Error: unknown command "submit-proposal" for "wasm"

topaz seal
primal mesa
#

What's the correct node? And gas price

#

Sorry new to the chain

topaz seal
# primal mesa Sorry new to the chain

It is ok to ask questions when you are new, no problem. What is not ok is to ask things that are explained in the documentation pages. Please refer to the docs first, and if the info you need is not there, feel free to ask here

primal mesa
#

OK.

I literally copied what I saw in the docs and that's what I used and it brought this error.

It was the doc I used to deploy on testnet

topaz seal
primal mesa
topaz seal
primal mesa
#

thanks
will try it now

primal mesa
spice sail
topaz seal
primal mesa
#

Error: [inj1xzl47mx87r7sx8e6cz9d3q257xtp9fue3dx073].info: key not found what does this means?

topaz seal
primal mesa
topaz seal
primal mesa
#

so I need to re install it

topaz seal
# primal mesa so I need to re install it

Not sure. My guess is that you should not be using the public address in your command, but the key name. I can't ensure you need to reinstall injectived, I don't have access to your environment. You will have to take the decission yourself

spice sail
#

i just want to send 1 of the token

#

i did it although i don't understand why its happening. 0.000000000001 is considered 1 token

topaz seal
spice sail
#

how do i get to the correct amount though?

#

its 1e-12

topaz seal
spice sail
#

is it because inj has 18 decimals and my token has 6 decimals and 18 - 6 is 12

spice sail
#

because i entered 0.000000000001 and it sent 1

topaz seal
#

Check the token information. You will find there the number of decimals used by the token

spice sail
#

it is 6

#

i don't get it

topaz seal
#

I am not sure how you are submitting the MsgSend, that will make a difference.

topaz seal
#

But in general, if your token decimals is 6, then 1 token is expressed as 1*1e6

spice sail
#

for typescript

topaz seal
spice sail
#

And above is the way i approach it on typescript

topaz seal
spice sail
fossil condor
#

I see the test nodes are on partial outage at the moment.
When can I use the test nodes?

fossil condor
topaz seal
topaz seal
fossil condor
#

@topaz seal I am not sure the reason why this error occurs at the moment.
Could you help me to resolve the issue?

fossil condor
#

I guess its related to the injectived version as its just 1.10 in the injective documentation.
https://docs.injective.network/develop/guides/injective-101/local-deployment-guide#2-install-the-injectived-binary
what is the most stable version? 1.12.1?

This guide will get you started deploying cw20 smart contracts on a local Injective network running on your computer. We'll use the cw20-base contract from CosmWasm's collection of specifications and contracts designed for production use on real networks.

topaz seal
fossil condor
topaz seal
fossil condor
lime ruin
#

If the proposal passes your code will be uploaded to mainnet and then you will be able to initiate the contract using the code.

hardy wraith
#

@topaz seal can u tell me how can we fectch txhash from a transaction signed by user, using keplr and leap? cause i am not seeing txhash in response, transaction going through correctly, here is my code:

topaz seal
hardy wraith
hardy wraith
kind flare
#

response.txHash

#

Where response is the result of the broadcast. Use TypeScript to make your life easier.

hardy wraith
hardy wraith
#

thanks for answer, can u lead me to doc where its told how can we read all info by tx hash so i can take tx hash from user
and verify tx on backend, weather user ransacted really or its just a bot doing random api requests.
i wanna do is:
give api this tx hash
check if one of the addresses involved is mine or not (i willl hard code tereasusry adddress in api)
if yes then what was inj ammount, what was $DDL (my token) amount.

if tx happened in reality i can add user new points he gained in database

#

@topaz seal

hardy wraith
#

i have read it infinity times, thats why i am already building dapp on inj