#❓︲dev-questions
1 messages · Page 1 of 1 (latest)
First you must introduce the proxy contract to the chain, from which you are going to consume the randomness.
Ah okay. But that means Id need to wait for them to deploy the contract right
Interesting topic, I try to find out. It seems that Nois developers must indeed deploy it by themselves, but let me just confirm it, I'd like to know that as well
ok, so the process is permission less, @hushed cobalt you can dig into and propose it to Injective voting if you'd like to use it
Hello I have a few questions regarding the project I am building and how I can successfully integrate some of the injective bridge modules into it. Can a <@&739555074879258704> member help me with this?
Ok but specifically my idea is to use NFTs on ETH as collateral for lending on Cosmos. Do you think this is possible if we create the loan and bridge it through Injective? Is there anything like this currently within Injective ecosystem? @tardy night
@tardy night is bridging ETH from Ethereum currently supported via Wormhole? I saw the docs and it only gives a Solana example
yes, it is!
cool thanks, where can I get more information/documentation/examples? I've only found this https://github.com/InjectiveLabs/injective-ts/tree/master/packages/bridge-ts/src/wormhole and it just mentions Solana
You wanna build a Wormhole bridge for Injective?
The bridge-ts package is mostly for our purpose, we use it on the Hub. We don’t have examples/documentation for this tho as its quite specific and I’d suggest to use the wormhole-sdk to build your own version.
I need to bridge ETH in an Ethereum smart contract to Injective/Cosmos via Wormhole. all this programmatically
I suggest you read more on the wormhole-sdk
Hello. I was wondering if there was a way to do a 15 minute mentor office hour with one of the injective team members?
Hi there, yes! We'll organize those right now- hold tight as we get a quick submission form ready for you to fill out so we can connect you with the right developer 😎
hey no worries
let me know when you send it
just listening the twitter spaces - I heard about some injective UI kit for connecting all the different wallets, but I didn't catch the module name. Can somebody link me GH?
regarding atomic spot orders - if I send batch update msg with atomic-sell atom->usdt, and atomic-buy usdt -> inj, while having only the atom in the contracts assets
should such operation work?
Hey @tardy night regarding this library. Do you have a specific example of how this is used with MM and how it is meant to be implemented for users? This is something we are having trouble with. Thanks!
https://github.com/InjectiveLabs/injective-ts/wiki/03Transactions you can find details here on making transactions
And https://github.com/InjectiveLabs/injective-ts/wiki/01WalletStrategy about connecting to the wallet, getting users addresses, etc
@tardy night is there an implementation example with Wallet Strategy? we're trying to imagine how does it integrates with MM or how is it used, rather than the available methods
in the peggyBridge contract, what is the _data parameter from the sendToInjective function for? function sendToInjective( address _tokenContract, bytes32 _destination, uint256 _amount, string calldata _data ) external whenNotPaused nonReentrant { I can't tell since it's not used in this example https://github.com/InjectiveLabs/injective-ts/blob/5ebc62502e713740a3b5dea83ee1c14a33c4ccd2/packages/sdk-ui-ts/src/web3/Web3Client.ts#L165-L217
also, just want to make sure: the bytes32 _destination param, is the injective, or the ethereum address -prepended with '0'*24? initially I thought it was the injective address but after looking at the Etherscan txs it seems to be an ethereum address
e.g. in this tx https://etherscan.io/tx/0x64d34202eae096eda6a8e424579812cd1af6d22fe3ac3cce34514cc083802514, the destination address is 8a602b0f2378d235e758f89af49bd551e940a455, which doesn't match the injective address format inj1xxxxxx..
It’s used to pass arbitrary data to execute after the transfer has been completed. For example you can transfer funds to the chain and do MsgExecuteContract when the transfer is done
this is correct, its the ETH address with 0’s prepended
Ok, cool, thanks. So if I pass an empty string it just sends the funds to Injective and nothing else?
correct
I'm not fully getting this. is this address an Ethereum destination address even though I'm trying to send funds from Ethereum to Injective? or it is actually the Ethereum source addres, where ERC-20 funds are transferred from?
hello guys, please i wanna know where can i get list of all message type. here is example of what i'm talking about
i usually browse the proto files:
injective custom modules: https://github.com/InjectiveLabs/sdk-go/tree/master/proto/injective
cosmos-sdk standard modules: https://github.com/cosmos/cosmos-sdk/tree/main/proto/cosmos
I m not fully getting this is this
const { signBytes, txRaw } = createTransaction({...})
const signature = await injectiveTendermintPrivateKey.sign(
Buffer.from(signBytes),
)
txRaw.setSignaturesList([signature])``` this pseudocode was possible with injective-sdk 1.0.490, but with current version 1.10.49 I got TS error that setSignaturesList is no longer a method on txRaw. How to sign the transaction now?
Signing is exactly the same, and to add signatures to the txRaw just do:
txRaw.signatures = [signature]
as easy as could be, thanks 🙂
do you provide access to any ubuntu servers for hosting app and or services?
nope, that's up to you
Hey I'm trying to upload a contract in K8S testnet, I used MsgStoreCode & MsgBroadcasterWithPk.
I receive this error: 'out of gas in location: txSize; gasWanted: 600000, gasUsed: 4189443: out of gas'
is there a chain limit or something? @tardy night
You can increase the gas by passing the gas limit yourself on the broadcast method
interface MsgBroadcasterTxOptions {
msgs: Msgs | Msgs[]
injectiveAddress: string
ethereumAddress?: string
memo?: string
feePrice?: string
feeDenom?: string
gasLimit?: number
}
Error: Transaction was not included in a block before timeout of 60000ms
at TxGrpcApi.<anonymous> (/Users/j0nl1/Repositories/vectis/vectis-contracts/cli/node_modules/@injectivelabs/sdk-ts/src/core/modules/tx/api/TxGrpcApi.ts:200:38)
at Generator.throw (<anonymous>)
at rejected (/Users/j0nl1/Repositories/vectis/vectis-contracts/cli/node_modules/@injectivelabs/sdk-ts/dist/cjs/core/modules/tx/api/TxGrpcApi.js:6:65) {
type: 'chain-error',
code: -1,
errorMessage: 'Transaction was not included in a block before timeout of 60000ms',
name: 'TransactionException',
errorClass: 'TransactionException',
context: '',
contextModule: '',
contextCode: -1
}
is this because I'm using a wrong network or something? I'm using k8s-testnet
try again, if the contract code is huge than it might take a few tries
I'm trying to upload a bunch of them because they are connected but all of them fails
I could upload one but I can't anymore
Install the latest packages, I've added a way to simulate the transaction and use the gas needed for the transaction now in the MsgBroadcasterClientWithPk
new MsgBroadcasterClientWithPk({simulateTx: true})
Thank you Bojan, that was exactly what I did, thank for you integrate it in the library
hi. If I want the peggy bridge to work with a custom ERC-20, do I have to call deployERC20() first (https://github.com/InjectiveLabs/peggo/blob/master/solidity/contracts/Peggy.sol#L476) ? and make the param _cosmosDenom to be literarlly peggy{0xMY_ERC20_CONTRACT_ADDRESS}?
also, how can I tell whether an ERC20 was deployed to Injective? especifically, the WETH ERC-20
Hi, if you want to deploy an ERC20 to Injective you only need to call the approve and SendToInjective functions. The deployERC20 function satisfies a different purpose which is to deploy an Injective denom to ETH.
awesome, thank you. btw, do you have the Peggy .sol interface? I created one with the sendToInjective function only but when testing it on mainnet it gives me the following error: execution reverted: Address: call to non-contract. is goerli Peggy contract running ok otherwise (0xd2C6753F6B1783EF0a3857275e16e79D91b539a3)? there're no valid txs to it from 15 days ago
Should be running fine, try using the UI on testnet: https://testnet.hub.injective.network/bridge
Is anyone using cw_multi_test::AppBuilder for integration tests on injective contracts? I'm having difficulties with types
expected struct `Box<(dyn cw_multi_test::Contract<cosmwasm_std::Empty> + 'static)>`
found struct `Box<(dyn cw_multi_test::Contract<InjectiveMsgWrapper> + 'static)>````
cc @obsidian moth
@modest stump how are you initialising your app and especially the WasmKeeper? I'd guess you might have not inilised it with InjectiveMsgWrapper type, but instead used the Empty (default)? Could you try something along these lines?
let wasm_keeper = WasmKeeper::<InjectiveMsgWrapper, InjectiveQueryWrapper>::new()
BasicAppBuilder::new()
.with_wasm::<CustomInjectiveHandler, WasmKeeper<InjectiveMsgWrapper, InjectiveQueryWrapper>>(wasm_keeper)
.build()
I'll take a look at it, thanks. do you guys have the Peggy solidity interface? because I want to integrate it with my contracts
yeah, I just bumped into this https://github.com/InjectiveLabs/cw-injective/blob/dev/packages/injective-testing/src/chain_mock.rs#L339 so I'm gonna use it instead, right ?
In the atomic-order-example repo the injective-protobuf is used from the same repo https://github.com/InjectiveLabs/cw-injective/blob/dev/contracts/atomic-order-example/src/contract.rs#L14, is the package injective-protobuf on crates or should I include it in my project the same way it's in the example and build it?
I ll take a look at it thanks do you
yes, that will work, it uses the same code as suggested in the snippet
that crate isn't published, but maybe we should do it... (sorry for a delayed response!)
np and thanks
Hi team, just one question are you sure on the doc for the denom token factory: [a-zA-Z0-9./] is correct? It seems an issue with '/' on the subdenom. It's on the factory module
you can read here
I'm reading here: https://docs.injective.network/develop/modules/Injective/tokenfactory/messages just want to know about subdenom for factory
I found today I can not to store the contract due to Error: RPC error -32603 - Internal error: max_subscription_clients 100 reached. RPC is https://k8s.testnet.tm.injective.network:443. It was fine yesterday
https://testnet.tm.injective.network/
Please use this, endpoints have high load.
Hey @tardy night, I tried to broadcast a tx but lcd endpoint is restricted by cors.
Acess to XMLHttpRequest at 'https://testnet.lcd.injective.network/cosmos/tx/v1beta1/txs' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
there was some instability on the testnet infra, can you try again?
I tried again but same result
@forest flint can we have a look?
Try now?
I'm still getting CORS error, I used the gRPC that is working fine
Are you set with gRPC or we should look into this further?
I can work with gRPC but maybe other person has the same issue using REST
I'm having an issue when I broadcast the tx:
Error: pubKey does not match signer address inj1tcxyhajlzvdheqyackfzqcmmfcr760marahn48 with signer index: 0: invalid pubkey
I'm trying to figure out what format should be that pubkey, I'm transform it to base64 string from binary (secp256k1)
const { signDoc } = createTransaction({
pubKey: toBase64(pubkey),
accountNumber,
sequence,
message: msg,
chainId: "injective-888",
});
You are probably encoding the pubKey to base64 twice.
I don't think it will be that error, I'm verifying that I'm transforming to base64 only once.
const { signDoc } = createTransaction({
pubKey: Buffer.from(pubkey).toString("base64"),
accountNumber,
sequence,
message: msg,
chainId: "injective-888",
});
Error: pubKey does not match signer address inj1tcxyhajlzvdheqyackfzqcmmfcr760marahn48 with signer index: 0: invalid pubkey
Following this documentation: https://github.com/InjectiveLabs/injective-ts/wiki/03TransactionsCosmos
again, I'm almost sure that the pubKey is encoded twice. I encountered this issue countless of times
Hey @obsidian moth can you send me a friend request?
Sorry for insisting but I don't think it is that. Sharing the full script, i'm trying with DirectSecp256k1HdWallet but having the same error also with keplr
Would you mind to take a look on it?
the address from signer is different to the one derive from PublicKey class
You can't use DirectSecp256k1HdWallet from cosmjs on Injective. Use the PrivateKey from sdk-ts and the fromMnemonic method
I know I was trying to simulate in a script the same behavoir that happen with Keplr
We don't have this particular example anywhere on the Wiki page tho, so I don't know exactly what is not working, I'd need some time to debug
const { value } = encodeSecp256k1Pubkey(pubkey); // The base64 encoding of the Amino binary encoded pubkey.;
maybe here is the problem
that return the value in base64 and also I used fromBytes from PublicKey to show that both methods return the same address, so public key is right.
I need a gist or something so I can have a look
not super familiar with the injective sdk, but wondering if protobuf encoding may be required?
something like Any(type_url="/type/url/string", value=PubKey(key=your_key))
nvm understood, I know what's the issue, basically is how the address is generated from the pubkey and also the signature got it, thank you!
Hello, I'm trying to compile Pyth's cosmwasm contracts but I get error "error[E0277]: the trait bound QueryMsg: QueryResponses is not satisfied" does anyone know what is the best way to resolve it? I basically need their contracts in my project. Would the best way be to rebuild their contracts manually and just get what I need?
Just to be sure - do you need the pyth-cosmwasm or you want to consume pyth pricefeeds in your contracts? (the later is the standard flow)
pyth-coswasm
https://github.com/InjectiveLabs/CosmWasm101 seems to be private?
Why is testnet USDT https://testnet.explorer.injective.network/asset/?tokenType=erc20&tokenIdentifier=peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5 showing here 6 decimals, but this request https://testnet.lcd.injective.network/injective/exchange/v1beta1/exchange/denom_decimal/peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5 returns 18
this is an error I guess on the chain, the first URL returns the decimals from the @injectivelabs/token-metadata package and the second one returns the denoms on the chain
another question - I'm struggling to get correct spot order on testnet ATOM/USDT - here is tx which creates 2 submessage orders https://testnet.explorer.injective.network/transaction/EE0E6F86A74050C27B547B0C39F543AB12C6805C9894921C8BECCD6D61A28B3B/?tab=eventlogs (one order on INJ/USDT and one on ATOM/USDT), the INJ is fine, but ATOM is smaller than intended.
I send following stringified msg SpotOrder { market_id: MarketId("0x491ee4fae7956dd72b6a97805046ffef65892e1d3254c559c18056a519b2ca15"), order_info: OrderInfo { subaccount_id: SubaccountId("0x04a7ccf83edc47ab2bbf56388dca20d950e2d56b000000000000000000000000"), fee_recipient: Some(Addr("inj1qjnue7p7m3r6k2al2cugmj3qm9gw94ttxjm646")), price: FPDecimal { num: 11505410000000000000, sign: 1 }, quantity: FPDecimal { num: 500000000000000000000000, sign: 1 } }, order_type: BuyAtomic, trigger_price: None } }, what I expect is order of 0.5 ATOM for price 11.50541, but when I check past trades I see 0.005 ATOM bid
Would anyone notice what's wrong with my msg ? Some decimals are probably wrong.
the ATOM spot market on testnet seems 2 decimals off, comparing to production. Anyway is there a way, how to find out more about a particular factory token? In my case factory/inj17vytdwqczqz72j65saukplrktd4gyfme5agf6c/atom, when I try to get denom_decimal it returns error: 12. The asset should be testnet ATOM I believe
what sdk are you using?
For the information about the token I used LCD endpoint something like exchange/denom_decimal can't remember
For the order messages I use rust cw-injective
@tardy night are you guys going to make this repo public? https://github.com/InjectiveLabs/CosmWasm101
I am trying to use Keplr with MsgBroadcaster and Wallet Strategy but my app crashes due to Uncaught ReferenceError: global is not defined (from randombytes in @toruslabs/openlogin-utils)
You can't have server side rendering, you have to build your app on the client side. Also, you need to configure some node polyfils -> https://github.com/InjectiveLabs/injective-ts/wiki/08BuildingDapps#configuration
How to add Injective-888 to Keplr? keplr.experimentalSuggestChain() doesn't accept getNetworkChainInfo() response. I tried to specify ChainInfo for Keplr manually but testnet was not added.
Probably it's a reason why I got Error: signature verification failed; please verify account number (30476) and chain-id (injective-1): unauthorized trying to send tx while actual chainId is "injective-888" and accountNumber is "10660"
Yes, you just change the endpoints to the testnet ones for now, there is no other way around it unfortunately
Where can I find information about API keys for asset prices to connect to my dapp?
You don't need an API key to fetch on-chain asset prices. What are you looking to do exactly?
I am making front-end of dex , so I need price actualization to make instant converting
Helix already has a "Swap" function you could refer to, @tardy night could help with the details in-code.
Okay , thanks
The code is open source -> https://github.com/InjectiveLabs/injective-dex/blob/dev/pages/convert.vue
Thanks
#[entry_point]
pub fn sudo(deps: DepsMut<InjectiveQueryWrapper>, env: Env, msg: SudoMsg) -> Result<Response<InjectiveMsgWrapper>, ContractError> {
match msg {
SudoMsg::BeginBlocker {} => begin_blocker(deps, &env),
SudoMsg::Deregister {} | SudoMsg::Deactivate {} => deregister(deps),
}
}
An example how to define the begin_blocker function in your contract if you want it to be executed automatically. Deregister and deactivate are optional hooks which are automatically called once the contract stops being automatically executed (for various reasons, bug during execution, running out of gas or deregistered via governance).
@tardy night I cant find it , but maybe you can help , where I can find API for tokens information on Injective blockchain, like logo, address, symbol
We use the @injectivelabs/token-metadata package on the products. You can use this abstraction class here https://github.com/InjectiveLabs/injective-ts/blob/515a9a8da08f883a0852a3a88c91fee0941b147a/packages/sdk-ts/src/core/utils/Denom/DenomClient.ts#L32 to convert denoms to Token
hey I'm using createTransaction in order to create a signDoc and signed after with the extension. The problem is the gas-adjustment shouldn't be right because I spent more gas than the limit, is there anyway where I could increase the gas limit ?
ok I realized that method has the gas hardcoded
you can override on your own
there are still 3 mins and I can't update the video demo link
Can anyone help with updating our video link? For some reason the edit button was disabled even though there was still a few minutes left.
tia
cc @umbral cairn
I sent video link to @umbral cairn directly ty.
Is the chain code open sourced? Wanted to check proto files
Are you guys using this - https://github.com/InjectiveLabs/substreams-example for streaming order book, price etc data feeds to exchange in real time?
If I am correct there has never been a coding bootcamp on Injective. Right?
Thanks 👍
Idk if the Dev is willing to assist newbies.
I am looking for his contact
Thanks @wanton frigate
hello, I have trouble when send 1inj by keplr by using @injectivelabs, I saw your example (https://docs.ts.injective.network/transactions/transactions-cosmos#example-prepare-+-sign-+-broadcast), but It is have many bug , what is type of txRaw, when I call txRaw.serializeBinary(), serializeBinary() is not exist. Hope you can help soon, thank you
This has been solved right?
not yet, still have problem, function getPublickey() where is it import from ??
Could be imported above, is this the full code?
That's weird, there really is no import regarding that function.
and here "msgs" from no where :v , but I think that is "msg" from above line code.
Could be a mistake in docs, be sure to report in #🆘︲help-and-support-old
I just want to create a transaction send 1inj to myself, but @cosmos does not support, and I found this doc now I stuck here :v
How do you mean?
Sending 1inj from your wallet address to the same address?
Yep
Is that possible in other chains?
Haven't heard of it here tho
I use cosmos/coswasm-stargate for other token like orai, kava, osmo
it is ok
but coswasm is not support for inj
here this error i meet
@broken jacinth 👀
It seems like there is a reply already in the GitHub issue. If that reply does not help we might need to ask @tardy night
so I follow the reply in the Github , and I stuck here
You can't use CosmJS with Injective
it maybe work, the keplr has opened transaction success, then I approved it , then the error happened in your sdk-ts, can you check what is this
Please follow the docs, we are using this in production and it works. There are no issues on the sdk-ts
https://github.com/cosmos/cosmos-sdk/issues/11997
it maybe cause by older version of coswasm that @injectivelabs used, coswasm is updated different from now, hope your code too, that why new dev get bug
We are using the sdk-ts in production for cosmwasm without any issues
Hi @tardy night ,
I trying to use @injectivelabs/sdk-ts in a typescript project but I can't get it to compile with the following errors,
- I tried : "@injectivelabs/sdk-ts": "1.10.0" and "@injectivelabs/sdk-ts": "1.14.0-beta.1",
- I tried node v16.20.2 and v18.13.0
- I tried with other dependencies and in a small new project with only injective and typescript
I used ubuntu v22.04
I have others projects on an centos 7 server with the version 1.11.0 that worked fine
If you have any idea of what is going on it would a great help ?
best
the tsc -p . message :
`node_modules/@injectivelabs/sdk-ts/dist/cjs/core/modules/gov/msgs/MsgSubmitTextProposal.d.ts:47:5 - error TS2416: Property 'toWeb3' in type 'MsgSubmitTextProposal' is not assignable to the same property in base type 'MsgBase<Params, MsgSubmitProposal, Object>'.
Type '() => { proposer: string; initial_deposit: { denom: string; amount: string; }[]; content: { type_url: string; value: any; }; '@type': string; }' is not assignable to type '() => (MsgSubmitProposal & { '@type': string; }) | Object'.
Type '{ proposer: string; initial_deposit: { denom: string; amount: string; }[]; content: { type_url: string; value: any; }; '@type': string; }' is not assignable to type '(MsgSubmitProposal & { '@type': string; }) | Object'.
Type '{ proposer: string; initial_deposit: { denom: string; amount: string; }[]; content: { type_url: string; value: any; }; '@type': string; }' is not assignable to type 'MsgSubmitProposal & { '@type': string; }'.
Property 'initialDeposit' is missing in type '{ proposer: string; initial_deposit: { denom: string; amount: string; }[]; content: { type_url: string; value: any; }; '@type': string; }' but required in type 'MsgSubmitProposal'.
47 toWeb3(): {
node_modules/@injectivelabs/core-proto-ts/cjs/cosmos/gov/v1beta1/tx.ts:16:3
16 initialDeposit: Coin[];
'initialDeposit' is declared here.
Found 12 errors in 7 files.
Errors Files
[...]
2 node_modules/@injectivelabs/sdk-ts/dist/cjs/core/modules/MsgBase.d.ts:19
2 node_modules/@injectivelabs/sdk-ts/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalExpiryFuturesMarketLaunch.d.ts:48
2 node_modules/@injectivelabs/sdk-ts/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalSpotMarketLaunch.d.ts:42
2 node_modules/@injectivelabs/sdk-ts/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalSpotMarketParamUpdate.d.ts:42
2 node_modules/@injectivelabs/sdk-ts/dist/cjs/core/modules/gov/msgs/MsgSubmitTextProposal.d.ts:33`
It seems like you have incompatible versions. The sdk-ts version and the wallet-ts or sdk-ui-ts version are not compatible (sdk-ts is used internally within wallet-ts and sdk-ui-ts and it seems like they are not the same version)
thanks, I don't see wallet-ts and sdk-ui-ts in my package-lock.json should I add them ?
"@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", "@injectivelabs/exceptions": "^1.14.0-beta.1", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.9", "@injectivelabs/mito-proto-ts": "1.0.46", "@injectivelabs/networks": "^1.14.0-beta.1", "@injectivelabs/test-utils": "^1.14.0-beta.1", "@injectivelabs/token-metadata": "^1.14.0-beta.1", "@injectivelabs/ts-types": "^1.14.0-beta.1", "@injectivelabs/utils": "^1.14.0-beta.1",
This seems fine. I'd need a repo to try and see what's the issue, I can't help you otherwise.
Contribute to beal2912/test-injective development by creating an account on GitHub.
Ok , I found something, I copied some of the tsconfig.build.json properties in my file and it seems to compile now 👍
I'm not sure which one...
thanks for the help @tardy night
Has anyone ever gotten an error message regarding glibc 2.29, because they only have glibc 2.28, when trying to use injective-py on a raspberry?
import {
MsgExecuteContract,
MsgBroadcasterWithPk,
} from "@injectivelabs/sdk-ts";
import { Network } from "@injectivelabs/networks";
const injectiveAddress = "inj1...";
const recipientAddress = "inj2...";
const contractAddress = "cw...";
const msg = MsgExecuteContract.fromJSON({
contractAddress,
sender: injectiveAddress,
exec: {
action: "transfer",
msg: {
recipient: recipientAddress,
amount: 100000,
},
},
});
const txHash = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Mainnet
}).broadcast({
msgs: msg
});
console.log(txHash);
Hey sir @broken jacinth
How can I transfer 1 nft with this code
It is available for an nft standard such as erc-721
For example, I want to specify the exact token ID in this code, instead of transferring FT
Ping sir @tardy night
We don't have an example on how to transfer NFT because it can differ between different marketplaces. I'd suggest to have a look at some transacitons from Talis's marketplace and see how they do it and use that in your example.
Hey, I'm trying to call the auction module from a cosmwasm contract but it doesn't seem like the auction module is callable from a custom message, considering it's not defined as a valid route (https://github.com/InjectiveLabs/cw-injective/blob/a88608fcb61e01408fbd1064d3c276311aa1acf4/packages/injective-cosmwasm/src/route.rs#L7)
Can I get some advice on how to proceed? Thanks
What languages can i use to create applications in inj?
You can refer to developer doc https://docs.injective.network/
you can use CosmWasm This is a smart contract engine that allows you to write contracts in Rust and deploy them on Injective. CosmWasm contracts are compatible with the Cosmos SDK and can interact with other modules on the Injective chain.
refer to injective docs for details
@ionic root https://docs.injective.network/
maybe u can find help frm this
#⚡︲get-started-buidlers @ionic root
Injectivr website provides tutorials, documentation, and examples of how to use the Injective Web3 modules and the CosmWasm engine
Hello Ninja, good to be here
for normal talks please use #🌆|chit-chat this channel is for dev questions only keep it clean
Good day ser
What system as storage to Nfts typically use on injective
Like a single token with metadata like Solana
Or A system where its stored in a kiosk tied to a wallet address like sui or what way?
Where can i get testnet tokens!
Here is the testnet faucet - https://testnet.faucet.injective.network/
You can head over to the link above to get the testnet tokens.
Hello, We're facing an issue when we trying get from our api/backend."JsonWebTokenError: jwt must be provided" We do not have any problem locally but when we upload our backend to the heroku and our frontend to vercel its bugging.
maybe this stack overflow answers can help
This error happens when the JWT token is null or empty, which means that the client is not sending it properly to the server.
@forest lily
GM I am juwonlo a technical writer and community manager. I write technical reviews, technical guides, documentations, and newsletters. Would love to contribute to Injective. How best can I reach out?
You can see open roles here https://injectivelabs.org/careers#open-roles
What are testnet tokens?
Tokens thar have no real value that are used on the testnest
wise ones - are there any guides on how to run injective VM on M1 Mac? I can see binaries in https://github.com/InjectiveLabs/injective-chain-releases/releases but seems they're x86 only?
... just realised there are docker images as well - just got that to work. v clean
Hey, I'm getting the following error when using Helix with Keplr on testnet, any way to fix this?
Can you clear your browser cache connect and try it again
Have questions regarding what exactly injective ? it is general blockchain right where i can deploy any application also heard that it has exchange order book
what is that
You can get started here https://injective.notion.site/An-Introduction-to-Injective-947a39267e9f46c2a82b8a07d95b3730?pvs=4
went through this
but lik ehow do i interact with the ordeer book ?
You can refer to our developer doc https://docs.injective.network/develop/modules/Injective/exchange/
I am not able to trasfner my INJ which I have on my ledger, after clicling transfer nothing is happening, anyone can help me?
forward this to #🆘︲help-and-support-old please, not here
this channel is for developer questions
ok
Thank you, this will be useful to me 🌟
excuse me, i have a problem with this.
Double-check if you haven't forgotten or missed anything
Yes
hello, I want to send some inj by keplr, I follow this docs https://docs.ts.injective.network/readme/getting-started-cosmjs, but it have error when return the hash of transaction, I check transaction success but this error happened, please check for me, thanks
Are you sure you are following the docs? Can I see a code snippet?
here sir, but I can not find function "assertIsBroadcastTxSuccess " from '@cosmjs/stargate', which version of '@cosmjs/stargate' that you are using
i'm using "@cosmjs/stargate": "^0.30.1",
@tardy night need a help can i DM?
We don’t support cosmjs so I don’t really know why this doesn’t work
Sure
can you check version of package you are using sir
We are not using cosmjs.
I hope the Catalyst team which ain't listed in Discord correct this bug in their Testnet Bridge https://app.catalyst.exchange/. The page doesn't fit the screen and a large chunk is cut off!
Hey guys I am looking to market make and wonder what the best network setup is
do you guys offer access to fast validators?
Youcan refer to injective docs https://docs.injective.network/
Please take a screenshot
can u guys tell me
@dull rivet sorry , can not take the screenshot
please help tell me the signmessge function
just like cosmos
or show me some example
You can check developer resouces in #⚡︲get-started-buidlers
If that not help, please wait until developer help you
sorry, have read the guidance
but not found how to build tx and sign the tx
@dull rivet
This document describes how to build smartcontract/dapp using CosmWasm
Here is the Typescript sdk documentation: https://docs.ts.injective.network/
@dull rivet case "swap":
return c.Swap(msg)
case "ibcTransfer":
return c.IBCTransfer(msg)
case "signMessage":
return c.SignMessage(msg)
case "signDoc":
return c.SignDoc(msg)
}
these are the case for cosmos
so the same as injective?
@vernal forge What exactly are you asking sir?
Injective support both EIP712 and native cosmos signing method:
https://docs.ts.injective.network/transactions/ethereum
https://docs.ts.injective.network/transactions/transactions-cosmos
Please refer to these examples ^
Hello!
I was trying to do a txn and got this error? I'm confused by this error message. Can anyone help me on this? I do understand what'd cause REPLY ERROR between contracts, byt what does ABCICode related things mean here?
Error: rpc error: code = Unknown desc = [reason:"execute wasm contract failed" metadata:{key:"ABCICode" value:"5"} metadata:{key:"Codespace" value:"wasm"}]: rpc error: code = Unknown desc = failed to execute message; message index: 0: Error parsing into type cw_common::core_msg::ExecuteMsg: Invalid type: execute wasm contract failed [!injective!labs/wasmd@v0.40.2-inj/x/wasm/keeper/keeper.go:394] With gas wanted: '50000000' and gas used: '123743' : unknown request
cc @obsidian moth
cosmos client you mean? As far as I know, cosmos client of some language doesn't work for Injective signing (e.g cosmrs), it's better to use our sdk (we have python, go and ts atm)
Is there existing ERC1155 Implementation or token equivalent implementation which I can reference to in typescript
what interface does token created using
Token Factory follow is it possible to customise the behaviour of this
hey, inj transaction is work fine with ledger guys? I call sendToken function and ledger return fail: "Broadcasting transaction failed with code 4 (codespace: sdk). Log: signature verification failed; please verify account number (20556), sequence (61) and chain-id (injective-1): unauthorized. How to resolve the problem?
Hi! Is it a IBC transfer? Should be able to do it by using keplr directly. This error pops up only using ledger at the moment.
Please use #💬・general or #🆘︲help-and-support-old next time 🙏
no I just call send inj
I noticed Leap vs Keplr have different addresses for the same seed phrase for Injective? Why is that?
Different network?
For Injective I mean
Cosmos, Osmosis, Archway are all the same but Injective is different?
I pinged team to check, thanks for reporting
Thanks, I am from a new wallet provider integrating Injective so just trying to understand account derivation for Injective.
All other chains seem to be the same "account"
Looks like Leap/Keplr uses the ETH (coinId: 60) instead of the ATOM (coinId: 118)
Is this the standard your project is trying to set for wallet portability?
Yeah it works with Ledger as Injective supports EIP712, cc @tardy night
@sweet ether hi, please help. if we want to signMessage. how can i make the params? can u give me an example
can you share code of function transfer token here
you mean with Ledger on frontend? @tardy night from our team could help with the example
yep
There are some examples here:
https://github.com/InjectiveLabs/injective-ts/wiki/03TransactionsPrivateKey
how to sign in different mode sir
sorry,i mean not transfer, any message for signmessage?
please show some example
const signature = await provider.signMessage(
@sweet ether
example for this
Please reference the docs first before asking questions here or at least use the search function before you do. https://docs.ts.injective.network/transactions/ethereum/ethereum-ledger
sorry I work in cosmos network , but link in ethereum type, hell known
@slim rune is the mentor for fixed rate lending project right ? Is it possible to contact him or @tardy night
It depends on the wallet, Leap and Kelpr use different methods for deriving private key from seed phase
If you want same account, just export private key (from leap e.g) and import it into the other wallet
seems like the important part is Error parsing into type cw_common::core_msg::ExecuteMsg: Invalid type or not?
meaning you are passing something incorrectly to the contract, e.g. non-existant function name or wrong parameters
@uneven kite here too mate u can find dev
Hello dev. i brigde INJ to osmos. This show completed but why i can not find it in my balance?
Please Dm me your osmo address I will check
please check Dm sir
Checking now
I'm asking tech team and will reply to you soon
You can refer to this doc https://docs.injective.network/cosmwasm-dapps/
Yeah on talis you can be a creator
Is the injective testnet faucet down?
Any other places where I can get funds for testnet?
Can anyone help out with a method to get data and NFT collection outside of Talis? Apparently we can't use their API and it's put us at a stop.
Unfortunately. It's so limiting.
API is locked down, can't even get NFT data etc
Would really be nice to get an actual dev support rather than being referred to docs that aren't exactly helping, especially based on NFTs.
It's discouraging and we're trying to support the ecosystem.
@broken jacinth
Abel will assist when he is available
buenos dias
Can anyone donate some testnet INJ to this address?
inj1xdm3mmzvsgdjsxlzd4399za8mnj0whqkmzxrgx
!faucets
Receive a small amount of INJ, enough to make 1-2 transactions.
- https://inj.supply/
- https://stakely.io/en/faucet/injective-protocol
- https://bwarelabs.com/faucets/injective-mainnet
For Testnet use: https://testnet.faucet.injective.network/
Testnet faucet is not working now.
are you getting any errors? also, please use #💬・general or #🆘︲help-and-support-old next time
HI
I am trying to run injectived local node.
But running setup.sh gives me the following error.
Error: unknown flag: --chain-id
I am follwing this document.
Can anyone help me?
cc @broken jacinth
I wanted to ask if a newbie can build onINJ?
Hey INJ team, two questions when you get a moment:
-
Just confirming that we are allowed to submit a project here that we are submitting to another hackathon so long as we disclose we are doing so and everything is being built in the overlapping timeframes - do we need to detail what hackathons we are submitting elsewhere to?
-
Can we build on the inEVM sidechain for our submission?
yes anyone can build on Injective, please refer to #⚡︲get-started-buidlers
-
It is okay, Disclosures are required if you are submitting somewhere else
-
Yes inEVM is fine
https://docs.injective.network/nodes/RunNode/mainnet
Hello, I can make sure I follow this document every step of the build, but the startup prompts panic: minimum commission rate cannot be nil: <nil>, am I doing something wrong?
You can forward your question to #🔩・node-operators
Thank you for the quick reply Vyz, quick question about the registration period - Appreciate that the registration deadline was end of October, but are there any exceptions if we've missed ?
Will ask team and get back to you soon
Thank you , appreciate it!
hey @dull rivet , who could I get in touch with re MM integration & incentives?
You can reach out to @lean shore to discuss about OLP program
https://trading.injective.network/program/liquidity/
Injective is the first front-running resistant, layer-1 exchange protocol that unlocks the full potential of borderless finance by supporting margin trading, derivatives, and futures.
ty
I've been enjoying Helix, aside from the kind of slow flow of Metamask. Does anyone know of a project that is developing alternate front-ends for Injective? Something where the keys are loaded from .env locally and can trade without having to interact via Metamask for every transaction
can i talk to one injective
you can DM @glacial trout he will help your case
@lean shore can you please check your DMs>
hey Vyz, any update on this?
Sorry. The registration period ended last month
Hey guys, I am trying to connect to keplr wallet in testnet but it throws me an error can anyone please let me know the steps, the error as it say that ' Keplr doesn't support inkective '
which Dapp you trying to connect?
Working on our own dapp. Plus same issue in testnet.hub.injective.network
Thanks for reporting, will check now
Let me share SS in dm
Yes feel free to share
Anyone went to Brooklyn Tech here?
If you have any questions then you can feel free to ask.
Yeah I just want to know how the devs know Mirza
have u studied there?
Yeah
@mint nimbus nice to meet u bro
@short geode welcome codewizard
When I try to execute message, "Region length too big" error comes out.
Region limit is 131072(128k)
I cant use over than 128k data in one execute function?
Or is there any settings for this limit size?
@lean shore can you answer my dms please?
Hey! @nova turret (Injective BD) and @forest flint (Integrations Engineer) can give you more info about integrating and our market making program. If you have specific questions about our incentives that you can’t find in our docs (linked below), feel free to ask me.
https://docs.trading.injective.network/rewards/open-liquidity-program-olp
ty
Are there any errors starting the node?
What is the problem then? I am not following
maybe the ports the local network config points too are not the correct ones for your node. You can use the custom netowork configuring each of the endpoints to the correct ports
Any learning course for newbies?
You can check videos on our official youtube channel - https://www.youtube.com/@injective_/videos
Injective is an open, interoperable, layer 1 blockchain built for finance applications.
It provides solutions tailored for DeFi developers to quickly build and launch applications for widespread use. Injective uniquely offers robust financial primitives, such as an on-chain order book and is highly interoperable with prominent layer 1 blockchai...
Yeah, started with it yesterday night.
Hey guys, I am trying to deploy a contract on my local chain and I am facing this issue at raw logs
failed to execute message; message index: 0: Error calling the VM: Error during static Wasm validation: Wasm contract requires unavailable capabilities: {"cosmwasm_1_3"}: create wasm contract failed'
seems to me like a version mismatch issues, can you tell me what version should I be using for coswasm ?
Try clearing cache and refreshing
hi everyone! Is there documents about un-staking all tokens I have staked on validators at the same time ? thanks in advance
From dev: We don't afaik, but he can use sdk-go/sdk-python to check validators (that he staked into) and unstake
are there any documents about unstaking all tokens from all validators at once for Typescript @dull rivet ? thank you
We don't have any currently
check dm
Okay mate
hey guys could someone point me to docs related to spl token support on injective?
You can refer to #⚡︲get-started-buidlers
Hi,
Am trying to find the value for proposerbasereward and proposerbonusreward as explained here:
https://docs.injective.network/develop/modules/Core/distribution/begin_block/#reward-to-the-validators
I have found conflicting values for these over here:
https://docs.injective.network/develop/modules/Core/distribution/params
and here:
https://www.mintscan.io/injective/parameters
Can anyone point me to the correct value/ where it is implemented in the source code?
thanks
good day
trying to set up hummingbot
getting this error trying to run the script for the sub account
line 20, in <module>
from .proto.cosmos.authz.v1beta1 import query_pb2_grpc as authz_query_grpc
ImportError: cannot import name 'query_pb2_grpc' from 'pyinjective.proto.cosmos.authz.v1beta1' (unknown location)
How to run injective nodes?
Please check the information in #📚・node-resources
Thanks
Hello @broken musk. Please check if you have correctly installed all Hummingbot dependencies. If you have please let me know what is the result of executing the following in a console with the hummingbot conda environment active:
pip list | grep injective
I have a question regarding the balances. We would like to have a list of all our user's up-to-date balances. So once he receives or sends funds we would update his balance. I tried using the tx stream, but it doesnt really provide data of token transfers. Calling streamSubaccountBalance is also out of the question, since we have alot of users and the API is limited to 50 requests/second. Is there any other option that Im not seeing? Maybe an enterprice API?
Hello Nalus. There is not enterprice API. For big projects and professional users the key is to run their own nodes instead of using the public nodes. When running your own node you will not be limited by a max. number of invocations per second (you will be able to use the max capacity your node supports) and you will not be sharing the node with any other user.
ok tnx
I believe i have the dependencies for hummingbot as i have been using it for other exchanges
using miniconda
when i run the command you gave it executes but no prompts appear
Have you executed it in the operating system console? It is not to be executed inside hummingbot, but in the console. If you have executed it in the console and you did not get any result, you have either not activated hummingbot conda environment or something went wrong with the installation
yes it was in the console
ok i will try to reinstall the hummingbot conda
You can ask here
What project are you building? @fathom sluice
@wheat shale
1 question.
are there any solution without depositing 500 to deploy my contract on mainnet?
@glacial trout
any update?
Hey, please wait for answer from our devs
ok
@wheat shale
from when all mainnet deployer require 500INJ?
cause my client deployed nft in september and he did not used 500INJ at that moment
Stefan already said that you need to wait for an answer, can you have a bit of patience?
To deploy a smart contract on mainnet you have to go through Governance. To submit a Governance proposal you need to deposit 500 INJ on the proposal. Once the proposal passes the 500 INJ will be returned back to your wallet.
Earlier project also did same? about 2 month ago......
I am not sure what project you are talking about, but if you think they did something different you should ask them. What Bojan mentioned is the official procedure
my client is the owner of a nft collection
and the nft SC is deployed 2 month ago and he never charged it.
he says Talis marketplace had launched it.
If he launched the NFT collection in Talis, you should contact Talis team then. Unless you want to deploy a new NFT management project, in that case would be deploying your project smart contract directly in Injective
Previously you spoke about deploying an NFT project. But in your last message you reference an NFT collection. These are two very different things, and you will have to clarify what are you trying to do for us to provide better guidance
https://k8s.testnet.lcd.injective.network/cosmos/tx/v1beta1/txs
Please what does this mean?
I'm looking to deploy a security engine on the injective blockchain any guide will be really helpful thinks.
Similar problem here .
Till yesterday everything was working fine , now everytime i try to broadcast a tx it returns
Broadcast error : Error: Failed to get response from https://k8s.testnet.lcd.injective.network/cosmos/tx/v1beta1/txs
Queries are working fine
Hi, I can use metamask to sign and broadcast execute and query messages but I cannot use it to sign storecode or instantiate messages. Anyone experience this before?
also, I'm having issues with fees when running an hermes relayer. Is there any documented hermes config file for injective testnet?
It also seems that instantiate2 in cosmwasm-std isn't working correctly in injective. This is expected if address generation was modified, is there an injective specific instantiate2 address generator?
https://docs.injective.network/develop/public-endpoints
@median matrix @pliant birch I think your question was answered in a different channel but essentially these are deprecated endpoints. Use the ones listed in the link I sent.
cc @obsidian moth
Is there some github repository were can i have access to the icon of the token on injective testnet ?
Don't know about GitHub repository but here is the link of all Injective logos on Google Drive: https://drive.google.com/drive/u/0/mobile/folders/1jhbHPy2l7-VGEYxGW-Ec4DXFm35wM2IJ?usp=share_link
could be because our Cosmwasm contract address length was modified? we set it to be the same length as externally owned account addresses
still having the issue. Is is possilble to use a subaccount that you have activated from the Helix UI in the bot?
@forest flint
Hii , sorry for tagging again and again . Can you pls check the group
yes, the instantiate2 address ends up being way longer. But it is not simply solved by a truncation. I just decided not to use instantiate2 in injective atm
If the error is still the same it means that there is a missing dependency. I have installed Hummingbot locally following the official steps and it works.
Team, We are trying to use MsgExecuteContractCompat to generate a message and then broadcast it using MsgBroadcasterWithPk. We aren't able to figure out how do we get the privateKey from the wallet? Couldn't find any specific code in the documentation too. Tried PrivateKey.generate() but it is something different we are assuming.
Please help us out here.
I also tried it on a new system and installed the full anaconda and still no good
What dependencies do i need to have from the injective side?
Also, is the entire addr validate api broken for the same reason? (it seems so to me)
nope, you should be able to use deps.api.addr_validate . are you importing injective-cosmwasm ?
- No. How would that help? Do you have an example?
- Also, the a reference cw721 contract I am using calls
deps.apifrom its own code which I'm not in control of
I keep getting this error when trying to open a custom ibc channel with a contract. Any idea why?
2023-12-05T19:42:49.874442Z ERROR ThreadId(1893) worker.batch{chain=theta-testnet-001}:supervisor.handle_batch{chain=theta-testnet-001}:supervisor.process_batch{chain=theta-testnet-001}:worker.channel{channel=channel::channel-3378/icahost:theta-testnet-001->injective-888}: failed ChanOpenAck ChannelSide { chain: CachingChainHandle { chain_id: injective-888 }, client_id: 07-tendermint-194, connection_id: connection-184, port_id: wasm.inj1wz786325vf8txdjndv4r53jy0ss2tmpqz4gxan, channel_id: channel-138, version: None }: failed during a transaction submission step to chain 'injective-888': gRPC call `send_tx_simulate` failed with status: status: Unknown, message: "failed to execute message; message index: 1: channel open ack callback failed for port ID: wasm.inj1wz786325vf8txdjndv4r53jy0ss2tmpqz4gxan, channel ID: channel-138: submessages: dispatch: submessages: contract: decoding bech32 failed: invalid character not part of charset: 34 [!injective!labs/wasmd@v0.40.2-inj/x/wasm/types/tx.go:154] With gas wanted: '50000000' and gas used: '315944' ", details: [], metadata: MetadataMap { headers: {"date": "Tue, 05 Dec 2023 19:42:49 GMT", "content-type": "application/grpc", "set-cookie": "grpc-cookie=36f77f112e3514e9bf953e8cefaac568; Expires=Thu, 07-Dec-23 19:42:49 GMT; Max-Age=172800; Path=/; Secure; HttpOnly", "x-cosmos-block-height": "19280589", "strict-transport-security": "max-age=15724800; includeSubDomains", "access-control-allow-origin": "*", "access-control-allow-credentials": "true"} }
It should be the injective-py library (the version specified by the environment.yml file)
https://pypi.org/project/injective-py/0.9.10/
My bad. deps.api works. I managed to open the channel 🎉 . (instantiate2 actually doesn't work though)
2023-12-05T21:59:47.033159Z INFO ThreadId(3949) worker.batch{chain=injective-888}:supervisor.handle_batch{chain=injective-888}:supervisor.process_batch{chain=injective-888}:worker.channel{channel=channel::channel-140/wasm.inj16fdpvghze30xgaq2lklk6cv5psnh4y2rflvgvk:injective-888->theta-testnet-001}: 🎊 theta-testnet-001 => OpenConfirmChannel(OpenConfirm { port_id: icahost, channel_id: channel-3380, connection_id: connection-2963, counterparty_port_id: wasm.inj16fdpvghze30xgaq2lklk6cv5psnh4y2rflvgvk, counterparty_channel_id: channel-140 }) at height 0-19194855
please help me to determine which staking provider to choose
is there a difference in security?
is it decentralized or does the provider have controll over my staking?
hey this is the place for dev questions, not for basic questions
can i stake without an provider?
You can ask it in #💬・general
ok
Hi @fathom sluice
Im reaching out to you by your tweets
twitter.com/illustriousPRMR/status/1725359948626817151
Can we talk more about it?
is injectived compatible with Mac Pro 3.5 GHz 8-Core Intel Xeon W. Want to know if i can run a node for the testnet.
You can check recommend specs in #📚・node-resources
If you have any node-related question you can ask in #🔩・node-operators
Alright thanks
You need to add Injective Testnet as a chain on Keplr -> https://chains.keplr.app/
Thanks Vyz
hello, i am trying to write a code to transfer out 1 inj, i need help, or is there any documentation i can check?
quick poll... anyone developed on Solana and Ethereum... what are the experiences overall?
Quick question, why is the basic requirements to setup injective that high?
Is there a small sdk toolset that we can spin up and have a working environment instantly?
Ethereum and Solana are enjoyable..
What do you mean with "setup Injective"? Are you trying to run your own node? If that is the case please check the https://discord.com/channels/739552603322450092/1112873160623280218 and https://discord.com/channels/739552603322450092/1121864126394806292 channels
Nope, I am trying to setup "injectived" and the basic requirements are quite high.
64gb ram or swap file equivalent
1TB storage space.
It is still not clear to me what you are trying to do. Injectived is the CLI app to interact with a nodes. What do you mean when you say you are trying to setup it?
where I can read about creating an NFT collection on the Injective?
Please contact one of the NFT marketplaces, they will assist
Can you tell me which marketplace Injective works with?
Talis, Dagora and one other
Thx!
Anyone can assist with this error when running the account authorization and script for hummingbot?
VALUE ERROR: non hexadecimal number found in fromhex() are at position 1
Please check the private key you are using in the script
I altered and now getting error " from hex () argument must be str, not int"
so i need to use int( when inputing the private key?
Please check the private key strings format used in the API docs examples https://api.injective.exchange/?python#spot-msgcreatespotmarketorder
Seemed to work . Thank you
in hummingbot where they ask for the subaccount Id i need copy that id i see on mintscan from the authz txn?
I think the connector configuration in Hummingbot does not request the subaccount_id. It requests the subaccount_index. Please going forward post Hummingbot connectors related questions in the https://discord.com/channels/739552603322450092/931298460571951114 channel. The dev-questions channels is reserved for queries from developers using Injective tools and components.
ok will do. Thank you
If you need development or modification of your website, please ping me.
Hi @rugged token please ask on #🆘︲help-and-support-old
Thanks!
can anyone pls fund some testnet inj to account inj1fky77yz3rf67x6xrpke957cp68mgmurfj799eh
sent
thx
If you need development or modification of your website, please ping me.
Anyone building a portfolio dapp to view and manage positions in one place?
inEvm will be a sidechain?
or will we be able to deploy using solidity on main chain
hm other than the hub, not really
where can I get testnet inj
Receive a small amount of INJ, enough to make 1-2 transactions.
https://inj.supply/
https://stakely.io/en/faucet/injective-protocol
https://bwarelabs.com/faucets/injective-mainnet
For Testnet use: https://testnet.faucet.injective.network/
can't get any from those links, tried all of them already
please try again in a few mins
Can you help me deploy a token contract on inj
yes, would have to make a governance proposal first can read about it on https://blog.injective.com/injective-governance-proposal-procedure/
Is for me?
Can I do on testnet?
Do we need to add the injective network to metamask?
Keplr seems easy as the network is already available.
You don't have to add Injective network to metamask, you can sign transactions using your Metamask and manage your funds from: https://hub.injective.network/wallet
please use #💬・general to ask non-dev question
Ok.. Thanks ✍️
Hello is there any guide in order to build an Mint Collection Website on injective blockchain ?
Can a single BUIDL be submitted for multiple categories? Eg: BUIDL 001 submitted to the DeFi category and also submitted to NFT category
is the swap function an abstraction of the spot orderbook or a seperate pool?
Hi all, can I ask here for help with networking smart contracts?
It works on top of the order books
Can someone please explain what I need to look for in a "claimed rewards from polkachu.com" transaction to know how much INJ was claimed? The values in the RAW data do not simply provide a single value field and it isn't obvious. I recently claimed some staking rewards and need to know how much I received for tax reporting purposes.
did the RPC and specifically gRPC stop working for the testnet? Is there a webpage to check status
yes, it’s under maintenance currently
Thank you. For my project, I'm running my own IBC relayer. However, when the judges are checking out my project, it'd be nice if I could provide the relayer myself rather than giving instructions to how to start an IBC relayer. Are there any free stable rpc endpoints I could continuously use? Or even paid but cheap services for the testnet?
cc @forest flint
Hi I'm trying to get testnet injective from faucet but it return 429 code
is there any more testnet faucet that i can used
Testnet it’s under maintenance ahead of the upgrade
So it will be back soon
oh, is there anyway to test some smart contract on any alternative testnet ?
Hey guys do we still qualify for the hackathon if we deploy on inEVM?
Hi. When can i get test inj
For Testnet use: https://testnet.faucet.injective.network/
Jumpstart your journey of exploring the Injective ecosystem by receiving some test funds to play with.
thansk
Which test net node and chainid is the best one to use currently?
Currently none. Once the Testnet maintenance finishes then you should use the load balanced endpoints.
I am not sure I understand your problem. You can create a new wallet in any of the wallet softwares (Metamask, Keplr or any other). You have to follow the same steps you applied to create the first wallet.
He is referencing using injectived galang cli package.
Check the transaction you sent to create the token. If not sure, check all transactions for the account you used to run token mint or the metadata submission, find the transaction that created the token and in the details you should find all the information
Any there any developers or experts in here that are able to tell me how to decipher or read the RAW details of a claim staking rewards transaction to tell how many INJ was claimed as part of the claim transaction? There is an amount value there but the value is not what you would expect and doesn't reflect the rewards I expect to see there.
Please make the testnet nodes availible as we are all trying to make the final touches on hackathon projects~
Interested in using INJ as the foundation for an innovative NFT marketplace… where do I start?
Done enough research now to have narrowed down my tech choice on moving forward with integration into my own marketplace platform. I think cosmos/cosmwasm/inj have the key tech/architecture I am looking for.
To start my dev journey, I am looking for an incremental approach due to being a startup. My first requirement is integrating my platforms content with an tokenization tech. Can injective offer an API we can work with for the integration? Creating NFTs in particular.
does this node not work anymore? I'm getting errors now.
https://k8s.testnet.tm.injective.network:443
shared with the team
Thx. Hopefully It can be availible soon as this is the last weekend before the deadline
yes either that or we extend the deadline
Is the testnet faucet working? I've been trying to get testnet funds since yesterday and it doesn't seem to work
it’s under maintenance ahead of the upgrade
That makes sense, thanks!
Where can i start learning about building sc on inj ?
Thanks
i need some faucet for deploy dapp can who sp me
add: inj1rvu6j7790setvxps7atrhtaxg43gl0rnmgveqn
Testnet or mainnet?
testnet
Testnet is under maintenance, please try later
I am a senior frontend & blockchain developer, just looking for an ongoing project now. I have developed many dapps like dex and defi project and also supported nft marketplace. please contact me if you are looking for a developer.
there is any ui to query and execute contracts? or is everything CLI?
Hi there! I've ported solana to injective using portalbridge. Now I have (wrapped?) solana on injective but I don't know how to swap it to inj. Anybody knows how to do that?
You can use Helix for that
Also this is not the right place for your question.
Where should I ask
Tnx
will the deadline be extended as the testnet is still undermaintanance?
how long testnet is undermantanance?
Will be back soon
Again I ask, can a single buidl be submitted to two different categories like the NFT and DeFi category?
@glacial trout @wise nova @dull rivet
could someone link me a tx on the inj block explorer of an example contract/token being created?
What dex am i trading on when using the python sdk?
Is there no way to query the indexer api directly via Url? I read through the api docs and didnt find a way
Hey there!
I am deploying on Injective EVM
What is the easiest way to verify my contracts on chain?
can someone point me the best resource to learn how to deploy a token on injective? thanks
EVM or Cosmos?
evm
Hey there, are you willing to share me any resources you might find please ? i'm looking as well to learn how to deploy an nft on the chain
mind sharing how u did it? are u on linux?
just looked to dev docs, yes linux
damn keplr is fucked rn lol
Hey guys
Sent some inj to my keplr wallet
It shows on the explorer that it's in my wallet but my wallet balance shows 0

Yup I know my funds are safuu just wondering what to expect
Wanted to buy some ninja but fooooook
@wise nova
I think you wanna ban this fake profile
Hello, I am new to inj, just doing the tutorial now.
I am confused.
I deploy to injective test network, but then the frontend instructions point to goerli.
Would I not want to point to inj testnet?
the contract upload instructions: https://docs.injective.network/develop/guides/cosmwasm-dapps/Your_first_contract_on_injective#upload-the-wasm-contract
on the next page the front end instructions: https://docs.injective.network/develop/guides/cosmwasm-dapps/Creating_a_frontend_for_your_contract
Am I missing something? I am new to cosmos development
upload to inj, interact with metamask on goerli? hmm
anyone able to help with launching a token?
Anyone here know how to deploy a contract on inj ? Is there a goto or someone that might can help
How did you deploy a token ? Any steps you can give
🙏
Is it possible to see who holds token?
The docs tell me I can omit ethereumOptions to not use metamask, as I want to use keplr instead.
https://docs.ts.injective.network/building-dapps/dapps-examples/smart-contract
So I remove the ethereumOptions
But then I get this:
...
errorMessage: 'Please provide Ethereum options',
name: 'WalletException',
errorClass: 'WalletException',
context: '',
contextModule: ''
}
What am I missing? I can omit from what the docs say, but it errors telling me to put it back when I do.
sage: "account sequence mismatch, expected 1, got 0: incorrect account sequence [julienrbrt/cosmos-sdk-inj@v0.47.4-0.20230901212009-ac1b893f0894/x/auth/ante/sigverify.go:269] With gas wanted: '50000000' and gas used: '49908'",
name: 'TransactionException',v
?
is this something liike of nonce?
how can we help?
How to create token in injective?
Hey all, please help! I just used the INJ bridge hub to bridge 8 SOL over to my keplr wallet. Solscan is showing that the transaction was complete, but when i try to claim the wormhole tx, i keep getting an error message that my “inj account cannot be found”. This is happening on both mobile and web. My hub history doesnt even show any attempted transactions. Has this happened to anyone else?
just DM me bridge hash I will check
Sent. Thank you sir
Hello
Come on man, there are tons of questions up there and no one is answering any. Jeez.
Where are they tons of questions buddy?
Check the docs: https://docs.injective.network/develop/guides/token_launch/
Which testnet rpc is available to use right now and where do i find the testnet faucet thanks
The testnet is under maintenance.
Should be back soon, please check back later.
Thanks Lahn
hey dev team, are cw20 and native tokens much different? ive deployed a native token, is that not compatible with astroport?
yes, it is
You are trading directly in the Injective native order books (as all dexes running on Indexer do). Basically you are trading alongside all dexes
Please always try the official documentation before asking questions in the forum https://docs.injective.network/develop/guides/token_launch/
Yes, it is
Has anyone heard about inscriptions coming into Inj? Is there any source, explaining how it works?
It's not live, but once we will have more details, we will share through channels.
So the functionality for it is not deployed yet?
You need to use the load balanced (lb) testnet endpoints
hi devs, I created a token on testnet, how can I add a logo to see it on the testnet explorer?
The logo is part of the token metadata provided when creating it
one question const balance = accountDetails.balances.find(balance => balance.denom === 'inj');
// Check if balance exists and print it
if (balance) {
console.log(Account balance: ${balance.amount} INJ);
} else {
console.warn(Account does not have INJ balance);
} is this right way to fetch bal?
how ccan i fetch the bal
This is the most complete endpoint to check for balance https://api.injective.exchange/#injectiveportfoliorpc-accountportfolio
thank you
@broken jacinth
can u help me find the CLI pre built binary for WINDOWs and not mac ?
because i searched the repository and i couldnt find anything for windows
@lean parcel ^
I don't think there is a Windows binary @fathom sluice. I would recommend you using docker to run it.
CC: @forest flint
What are you trying to do? I don't have all tokens in Injective in my mind, I will need to check, but I don't recognize uinj
I want to use Cosmjs SDK to send my objective transaction, but I don't know the minimum unit of Coins? What I see in the document is UATOM. I thought this was uinj. Can you tell me the correct token unit

Hey hye!
Trying to make a swap but got this error:
"account sequence mismatch, expected 8, got 7: incorrect account sequence
"
what is the opposite of --no-admin while deploying cw-20
Are you using Injective chain? If that is the case you should be using Injective SDK, not Cosmjs SDK
Please try to visit the documentation pages before posting questions in the forum. If not we are going to keep answering the same questions again and again
https://api.injective.exchange/#faq-15-when-may-i-see-account-sequence-mismatch-errors
Should I use the Objective SDK instead of the Cosmjs SDK
What is Objective? Do you mean Injective?
I want to use the Cosmjs SDK to send transactions using an Objective account.
Sorry, I don't know what Objective is
Sorry, I was not aware that the Cosmjs SDK does not support the Objective network before. I have found the Objective SDK and thank you for your help. I have resolved my issue
Is there some example code for doing swaps? And getting prices
Hi! Need support.
When I use @cosmjs to obtain a wallet address from a private key, why is it different from the address in my Kepler wallet?
Please check the documentations. You should not be using @cosmjs
Swaps are just a simplification of market orders in the order books. Regarding prices, you could get them by checking the order book bids and asks, or checking the latest trades for a market, or querying the price from one of the Oracles. To know how to do any of this actions, please refer to the documentation
I see got it thanks. Also I looked at the docs and couldn't find this, but I see within the explorer that contracts have different msg types when intitiated. Is there a single one that gets emitted when you make a contract? or can it be multiple
Like some have MsgInstantiateContract or MsgExecuteContractCompat
Thank you. Also: in the python github examples, I see code snippets for sending messages, getting pricing etc.
But I don't see one for listinging to incoming txts, is that a concept in inj?
Im used to ETH where you listen to the mempool and get txts, then parse their messages to see what they're doing and if they apply to what you want
Is that concept in the inj dev eco as well? Or is it more of polling txts then parsing
Just to clarify: do you mean spying other users transactions before they are included in blocks? You could do that if you run your own node. But there are no methods in the SDK to help with that
that is for transactions in blocks
@broken jacinth dm
@broken jacinthSir, how can I consult about SDK issues?
You can post your questions and issues in #💻︲api-support channel
Thanks, so is there a guide how I can do that?
If you created the token you already did that
would creating my own endpoint help my txns go through faster on INJ?
Where can I find the official RPC, sir
Do you mean the endpoints? All endpoints are listed in the documentation
help me?
Why did I swap INJ to ATOM and INJ to TIA on Kelpr wallet and it was reported successful, but I haven't received ATOM and TIA yet? It's been almost 2 hours
what happen with my 2 transactions, more 3hrs and i still not receive ATOM and TIA, even though I lost sum 0.3 INJ
OSMOS bridge seems to be stuck please wait till their team resolve
Thank you sir, hope the team can fix it as soon as possible
So I can get my lost 0.3 INJ back or the corresponding ATOM and TIA tokens?
https://github.com/InjectiveLabs/sdk-python/blob/master/examples/chain_client/4_MsgCreateSpotMarketOrder.py#L35 Is there a way in code to calculate the price on demand?
I didn't see one
@wise nova
inEVM: {
url: "https://inevm-rpc.caldera.dev/", // Insert your RPC URL Here
chainId: 1738, //Insert your ChainID Here
},
i'm trying to deploy a contract on INJ by using hardhat
This is the contract it seemed to deploy: 0xd18EAEdfF82F753D3F5F25d4Ca5ab102dc348fD9
but in reality nothing've been deployed
what is this inEVM plugin, i tried deploying a contract on hardhat using the inEVM rpc url that apparently is === to Injective but nothing happens.
Anyone tried to deploy a token on Injective?
we asnwered you on #🆘︲help-and-support-old
Hi I have an issue trying to integrate injectivelabs ts with protobuf, the next error occurs:
/node_modules/protobufjs/minimal"' has no default export.
1 import _m0 from "protobufjs/minimal";
I try to install protobuf but it's doesn't work
can someone send some inj in testnet please, faucet not working
inj17g5ad3xy25rz9je6wu85qye09xklppswh6p0eu
In order to create token that’s applicable to astro I need to deploy it as native inj token?
Nope, token factory
Hey There Guys just wanted to inquire about the candymachine of INJ blockchian any idea on it ?
What do you mean with "calculate the price on demand"? What price do you want to calculate? You can get best bid or best ask price by checking the market order book. You can get the last traded price by checking the market trades. You can also request a token pair price by querying the oracle price
hey inj team, im getting this error
Error: rpc error: code = NotFound desc = rpc error: code = NotFound desc = account inj... not found: key not found
the wallet has 10+ Inj on it and i have transfered to other wallets and it works fine on mainnet
sent the same command with an older wallet and it went through fine.
is there a timeout before you are able to run the command injectived tx tokenfactory create-denom ?
What is the endpoint you are using to send the transaction?
Is there any issue with this example code?
https://docs.ts.injective.network/core-modules/token-factory
It trows invalid denom error
const privateKeyFromHex = PrivateKey.fromHex(privateKey);
const address = privateKeyFromHex.toAddress();
const injectiveAddress = address.toBech32();
const subdenom = 'inj-test';
const denom = `factory/${injectiveAddress}/${subdenom}`;
const amount = '1_000_000_000';
console.log('INJ address:', injectiveAddress);
async function createToken(
privateKey: string,
injectiveAddress: string,
subdenom: string,
denom: string,
amount: string,
): Promise<void> {
const msgCreateDenom = MsgCreateDenom.fromJSON({
subdenom,
sender: injectiveAddress,
});
const msgMint = MsgMint.fromJSON({
sender: injectiveAddress,
amount: {
denom: `factory/${injectiveAddress}/${subdenom}`,
amount: amount,
},
});
const msgSetDenomMetadata = MsgSetDenomMetadata.fromJSON({
sender: injectiveAddress,
metadata: {
base: denom,
description: '',
display: '',
name: 'TEST',
symbol: 'TST',
uri: '',
uriHash: '',
denomUnits: [
{
denom: `factory/${injectiveAddress}/u${subdenom}`,
exponent: 0,
aliases: [`micro${subdenom}`],
},
{
denom: denom,
exponent: 6,
aliases: [subdenom],
},
],
},
});
const txHash = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet,
}).broadcast({
msgs: [msgCreateDenom, msgMint, msgSetDenomMetadata],
});
console.log(txHash);
}
// Call the function with appropriate arguments
createToken(privateKey, injectiveAddress, subdenom, denom, amount);
What could be the issue here?
What is the error?
Error: invalid metadata display denom: invalid denom:
Have you actually created the denom firts with the message MsgCreateDenom (first step in the doc page link you posted)
--chain-id=injective-1 --node=https://tm.injective.network:443
This the requirement pc for coding on injective?
for running a local testnet
Please check the official endpoints in the documentation page https://docs.injective.network/develop/public-endpoints
Not a local testnet, a local node (it could be a testnet or mainnet node)
I'm using the code from full example, so it probably should sign those transactions one by one. The documentation is quite confusing though.
Also, mention the required for the required fields in the metadata.
So I cannot run with normal laptop. Ram 8 ssd 500gb
Thanks that worked
I could deploy the token successfully, but I would like to understand the metadata config:
here's my address:https://testnet.explorer.injective.network/account/inj1t88furrvvv32qj82wwtz86s03rzxqlj0f59eev/
Why does it show the token as a denom? why it doesn't show the name properly?
@broken jacinth Could u plz check and advice?
Here's the code:
const privateKeyFromHex = PrivateKey.fromHex(privateKey);
const address = privateKeyFromHex.toAddress();
const injectiveAddress = address.toBech32();
const subdenom = 'TEST';
const denom = `factory/${injectiveAddress}/${subdenom}`;
const amount = '1_000_000_000';
console.log('INJ address:', injectiveAddress);
async function createToken(
privateKey: string,
injectiveAddress: string,
subdenom: string,
denom: string,
amount: string,
): Promise<void> {
const msgCreateDenom = MsgCreateDenom.fromJSON({
subdenom,
sender: injectiveAddress,
});
const msgMint = MsgMint.fromJSON({
sender: injectiveAddress,
amount: {
denom: `factory/${injectiveAddress}/${subdenom}`,
amount: amount,
},
});
const msgSetDenomMetadata = MsgSetDenomMetadata.fromJSON({
sender: injectiveAddress,
metadata: {
base: denom,
description: '',
display: 'TEST',
name: 'TEST',
symbol: 'TST',
uri: '',
uriHash: '',
denomUnits: [
{
denom: denom /** we use the whole denom here */,
exponent: 0,
aliases: [`micro${subdenom}`],
},
{
denom: subdenom,
exponent: 6 /** we use the subdenom only here (if you want your token to have 6 decimals) */,
aliases: [subdenom],
},
],
},
});
const txHash = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet,
}).broadcast({
msgs: [msgCreateDenom, msgMint, msgSetDenomMetadata],
});
console.log(txHash);
}
// Call the function with appropriate arguments
createToken(privateKey, injectiveAddress, subdenom, denom, amount);
how to get logs from a transaction using ts sdk?
im new to blockhain developing but have background in js and python and java. Whats the best way to get started?
The answer is and will always be: the official docs
im lost in the docs, like what section should I do first?
im trying this first but wget isnt working which I assume is an error with my golang https://docs.injective.network/develop/tools/injectived/install
It is difficult to answer that question. That will deppend on what you want to do really. If you have background in JS one possibility is to read the TypeScript examples. Maybe even create your own local DEX implementation to understand the things you can do in Injective (https://docs.injective.network/develop/tools/injectivets/)
injective-ts is a TypeScript monorepo that contains packages which can be used to interact with Injective from a Node.js or browser environments and which provide simple abstractions over core data structures, serialization, key management, and API request generation, etc. The packages can be found in the packages folder and each package is a np...
im having trouble swapping my weth to inj on injective, my balance isn't showing up what should i do?
checking your case
do I need a linux enviornment?
it seems the docs are written for it
Not necessary. If you want to run your own node, then that will be a plus. If you want to implement some examples and interact with the public nodes, you can use any environment you want
no, you can interact with the public infra too
It has rate limits and it tends to be very loaded, but you can use it
is that just public examples?
Well, the docs include a lot of examples, and the docs are public, so yes, there are public examples
to install injective, how do I do it on windows it seems it theres only docs for linux? https://docs.injective.network/develop/tools/injectived/install
If you want to run a node, or use the node CLI, then you need linux, or a VM, or docker
im having trouble swapping my weth to inj on injective, my balance isn't showing up what should i do?
@broken jacinth
That does not sound as a dev-question @fathom sluicesim. Did you use any of the SDKs to execute the swap? Or did you swap using Helix?
i bridged my eth bia wormhole to inj
than i converted my cw20 to the bank however my balance isn't showing up when trying to swap on helix
When you say you converted your CW20 to the bank, do you mean that you claimed the bridged tokens using the hub?
In any case, you should post the question in the #🆘︲help-and-support-old channel, not here
Hello i've try create native token but have problem with add liquidity / pool
how to get logs of a transactiono sir? using @injectivelabs/sdk-ts
please sir i really really need help, i send my 6.3INJ to my binance acct and i forgot to put the memo code, please how can i get the money back to my wallet sir. please help me because am feeling like going crazy now sir please. this is the TXHash; 0C67EC9C19EC14981DF523412598D550B9F4928C340097B83A387B651A386F3F
@broken jacinth
Please reach out to binance support they will help you
please, can the money come back to me in any way sir if i reach out to them
I send a bit of weth to injective using wormhole bridge
Cant find it now
What should i do
you can dm me bridge hash I will check
yes
Hi everyone please use #🆘︲help-and-support-old if you have user issue
thanks sir let me do that now
Send friend request
I received TIA from the INJ -> TIA swap command, but the INJ -> ATOM swap command timed out and I have not received ATOM. How can I receive ATOM or will I lose INJ and not receive any ATOM? ?
k8 nodes are down again. And grpc for load balanced nodes on the documentation has never worked with hermes relayer. (testnet) Will they go up again?
the timeout transaction will refund to your address
I was supposed to record my demo vid in a few hours 😢
I have tried this sample https://github.com/InjectiveLabs/injective-ts/wiki/03TransactionsPrivateKey and get error "key not found" while i built key from mnemonic. Please help, bros
when I am trying to execute tx, I got this error
account sequence mismatch, expected 1539, got 1538: incorrect account sequence
how can I solve this issue?
I cant send testnet INJ to others using keplr wallet.
because of the above error
I'm using testnet.sentry.tm.injective.network rpc url
Is this wrong?
How to set rpc in python sdk
hey devs, how do i find the denom for an LP? when i try doing a tx bank send getting and error:
failed to execute message; message index: 0: spendable balance is smaller than 123factory/inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk/lp-address:insufficient funds
getting error also when trying to send LP tokens via the leap cosmos wallet
any tips? thanks!
How to get privatekey from kepler walelt?
Please you can read and find this in keplr FAQ
Keep this channel for Developer questions
? I want to privatekey of INJ to test something, does it relate to developer?
injectived version
injectived: error while loading shared libraries: libwasmvm.x86_64.so: cannot open shared object file: No such file or directory
why??
i can't run the injective chain node, can u tell me why?
Please provide more details and a person with the appropiriate knowledge will answer when they see
I got this error when try to send a transaction with prvk.
can someone help me?
@tardy night
does this twitter legit affiliate with this project?
send some INJ to the address
already had it. And I got the privakey from injectived keys export mywallet --unarmored-hex --unsafe
sir, does this twitter legit for affiliate with injective project?
or scam?
Maybe the network you are using is not up to sync with the chain, try another network
Hey, such qeustions please forward to #💬・general
Guys please keep this channel ONLY for developer questions! Any standard questions please ask in #💬・general !
fix it
ok
hey bojan, did you have min to help me find a denom and command to send LP tokens from Astroport?
Hey guys i'm looking to write a script to trade INJ to any token (in js or python) could somebody help me please ?
The address I recovered using mnemonic words is different from the one in Keplr. What could be the reason? This is my code:
const client = await StargateClient.connect(rpc)
console.log(await client.getChainId())
const wtSigner = await DirectSecp256k1HdWallet.fromMnemonic(Mnemonic, { hdPaths:[hdPath], prefix: prefix});
const wtAddress = (await wtSigner.getAccounts())[0].address;
console.log('address:', wtAddress);
testmet faucet down?
Hey, testnet is down for maintenance
I thought so too, but it started producing blocks again, no?
need some help to add some grant that i revoke
was doing this as a safety procedure but Helix team can't help me with that
where i can add grant to a address?
can someone send me some testnet inj please
inj1e2njfcsuazrkkwj7e6knqetp8uj7uey9gt2gpk
Hello,
What's the simplest way to create a mini script who create a transaction with a memo, sign it with private key stored in .ENV and broadcast it ?
sir, how to fix it
Why won't this package install
Any INJ team member here? There are some issues in the Typescript sdk documentation, so many outdated imports
Hello
Injective explorer doesn't work for me.
It said : "The request to txs has failed".
Do you have same pb ?
I agree
Yeah, same problem.
Okay thanks
Any no code tool to create token on INJ ?
@tardy night ?
Honestly, I don't see any activeness from INJ team regarding the issues and queries, nobody answers the questions or help properly.
Hey, please have patience, someone will respond that has the suffiecient knowledge for a dev question
No code, I mean
No code website to create token
?
Why won't this package install
Is there anyone who can help with this
Is there anyone who can help with this
Is there anyone who can help with this
anyone tried deploying a coin using hardhat?
Please can anyone tell me the difference between a native token and cw20?
are they both tradable
Send hardhat link
Could anyone point me to the documenation about streaming transactions? I'm trying to listen to all transactions made by a certain wallet. So far the only idea I have is to subscribe to all the gRPC streams available and filter that way.
if you're saying that, it means you don't even know what hardhat is 🤣
Just tryna get to know what it is , I got the documentation tho
can I use injective-py to simply send INJ from my wallet to another wallet address?
I have this error with injective/sdk-ts example : Error: rpc error: code = NotFound desc = account injiugherfiuyegrfiuygerf
When I try to create and broadcast a transaction.
Any help ?
what is the prefix for injection?
I used the example in this doc : https://docs.ts.injective.network/transactions/private-key#example-prepare-+-sign-+-broadcast
if i want to buy from astro dex, should i use sdk python or golang from my document or from package from astro?
Yes, you can
What network are you using?
Injective mainnet
I mean, in the code, how do you instantiate the network?
I am not sure what your question is
Sorry, I don't understand the question
how? can u show example pls?
import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing";
import { SigningStargateClient, coins } from "@cosmjs/stargate";
async function main() {
const mnemonic = "xxxxxxxxxxxxxxxxxx";
const walletOptions = { prefix: "inj" };
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, walletOptions); in this code I want it to find my wallet with the memonics I give it, but it finds a different wallet address.
Don't user Network.Mainnet, you should use Network.MainnetSentry
Okay Thanks will try
I suppose you are trying to install injective-py (the official package) and not pyinjective (this is just a module in the official package, not a package itself). What is the error you get when installing it using pip
Well, you are using cosmjs, you should check the Cosmos guides or Cosmos support team. For Injective you should be using injective-ts
Hey @broken jacinth, is there a way to stream transactions of a certain wallet instead of all transactions with the explorer stream? I'm using injective-ts
Not yet, but maybe in the near future
Please check the API documentation page
There are examples on how to do that in the API documentation page
seems you are using Stargate SDK, you should check in that SDK docs or with their support team
what should i do to swap the tokens from astro dex router using cli ?
The first step to solve any issue is always to read the documentation page
https://api.injective.exchange/#faq-15-when-may-i-see-account-sequence-mismatch-errors
I successfully deployed the injective node. How can I open the json query of abci_query?
is there any way to install injecticed on Mac?
anyone can help me
As I told you also in the api-support channel already, you need to ask the question in the proper place: #🔩・node-operators
ok
@broken jacinth can u help this sir?
Could you clarify what do you mean with "using cli"? Also, Astroport runs on top of Injective, that means that they use all Injective native order books to trade. You can "swap" tokens by trading in any of the markets
So i used this website https://testnet.faucet.injective.network/ to add testnet funds to my wallet like 10 minutes ago. This normal that its still empty ? https://testnet.explorer.injective.network/account/inj1pgh68ealprynlk7hnj2rj9rjnw73j5dczeyey7/
Jumpstart your journey of exploring the Injective ecosystem by receiving some test funds to play with.
this is down btw
used diff and works now
time="2023-12-19T14
29+01:00" level=info msg="Starting GRPC Web server on 0.0.0.0:9091"
I visited the localhost:9091 prompting me to “ gRPC requires HTTP/2”
How do I fix this
@broken jacinth
Not sure what you are doing. I could not really say.
@broken jacinth , do you know why the query DenomMetadata isn't working? I tried to fetch inj, some factory/ and peggy/ tokens, but it always returns error
You should ask in the #🔩・node-operators channel
What SDK are you using? Could you share the script you are running?
Do we qualify if deploy smart contracts on inEVM?
I'm running the cosmrs + cosmos_sdk_proto because i'm coding with RUST. I was using the abci_query
let query = QueryDenomMetadataRequest {
denom: denom.to_string(),
};
let request = self
.rpc
.abci_query(
Some("/cosmos.bank.v1beta1.Query/DenomMetadata".to_string()),
query.encode_to_vec(),
None,
false,
)
.await?;
I'm getting code = NotFound desc = client metadata for denom inj: key not found
Hello, why when I want to deploy on mainnet, I get the error : failed to execute message; message index: 0: can not create code: unauthorized ? 2FABB77F90333B032C94F604EEC73DD719705D88B445DC3FC2EC8ADE43477CDD
It isn't working for any coins.
The DenomsMetadata works normally, returning alot of coins.
AllBalances works too, returning the denoms inj, etc.
Don't know why DenomMetadata always fails
@sweet ether
Please check the documentation: deploying contracts in mainnet requires a governance proposal
Hey @broken jacinth I can't find answer to this question. Can you please help me out?
Is there any way to interact with inj sc directly? For instance swap assets on astro using my own script?
I am not sure what you mean with "qualify". Qualify to what?
Qualify for the hackathon.
Yeah i read it but I thought it was deprecated since I don't see proposals lately. How much time does it take to have a proposal accepted / rejected ? And I see only 224 proposals passed, does this mean there is only 224 contracts on mainnet ?
Thanks for your response
I mean will it be a valid submission?
What do you mean with "swap assets on Astro"? We are the Injective Discord server. We can guide you to do things on Injective. If you need something specific for a particular dApp you should get in touch with that project
For example, when using eth etherscan has all read and write methods of a published sc listed, is there a way to get this on inj? Any docs or tools that might help me learn more about it are greatly appreciated
@dull rivet
I am not sure how long it takes. We could ask @forest flint
So there is only a bunch of contracts on the mainnet ? Is it not like EVM where everyone can deploy it's own contract etc ..
In Injective you can't check the contracts' code onchain. You need to get the repository or get in touch with the developer to do that
In Testnet anyone can deploy contracts. In Mainnet anyone can propose to deploy, but the community has to approve the deployment
@broken jacinth I moove to MainnetSentry but same error :
Error: rpc error: code = NotFound desc = account inj1w3dhvk5thtckhyygdk50pfuf6xh6m5s500d8gd not found: key not found
at ChainRestAuthApi.<anonymous> (D:\NextJS\injbot2\node_modules\@injectivelabs\utils\src\classes\HttpRestClient.ts:59:40)
at Generator.throw (<anonymous>)
at rejected (D:\NextJS\injbot2\node_modules\@injectivelabs\utils\dist\cjs\classes\HttpRestClient.js:6:65)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'http-request',
code: 404,
originalMessage: 'rpc error: code = NotFound desc = account inj1w3dhvk5thtckhyygdk50pfuf6xh6m5s500d8gd not found: key not found',
name: 'HttpRequestException',
errorClass: 'HttpRequestException',
context: 'cosmos/auth/v1beta1/accounts/inj1w3dhvk5thtckhyygdk50pfuf6xh6m5s500d8gd',
contextModule: undefined,
method: 'GET'
}
Have you sent any funds already to the account?
Actually not it's just a test account with no funds
But I excpected a "not enough found" error not a "404 account not found"
The account is actually created onchain when you send funds to it
has anyone actually figured out how to get working script? or all throwing errors
Ah ok So I have to send small amount forst
Yes, correct
Ok got it thanks ! And last question : i don't figure out how to get my private key ? Like I have public key, and inj address, but I need a private key at some point
Okay it works thanks.
Now I try to put transactions in a loop but it fail for the second :/
Transaction Hash: 46DF1B7B7637E911E7D4ED9A5B0CD64739E5AB50D354DE5CF0A93F99F2122E33
Broadcasted transaction hash: "46DF1B7B7637E911E7D4ED9A5B0CD64739E5AB50D354DE5CF0A93F99F2122E33"
Transaction Hash: 46DF1B7B7637E911E7D4ED9A5B0CD64739E5AB50D354DE5CF0A93F99F2122E33
Error
at TxGrpcApi.<anonymous> (D:\NextJS\injbot2\node_modules\@injectivelabs\sdk-ts\src\core\modules\tx\api\TxGrpcApi.ts:187:40)
at Generator.next (<anonymous>)
at fulfilled (D:\NextJS\injbot2\node_modules\@injectivelabs\sdk-ts\dist\cjs\core\modules\tx\api\TxGrpcApi.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'chain-error',
code: -1,
originalMessage: '',
name: 'TransactionException',
errorClass: 'TransactionException',
context: undefined,
contextModule: 'sdk',
contextCode: -1
}
Looks like it re-submitted the same
There are examples in the API documentation page
According to the explorer the TX was successful https://explorer.injective.network/transaction/46DF1B7B7637E911E7D4ED9A5B0CD64739E5AB50D354DE5CF0A93F99F2122E33/
did you fix this?
Yes but I want to create a new TX at the second round of my for loop
nope ı dont getit 🙂
How did you manage the mnemonic to give the correct address?
const privateKey = PrivateKey.fromMnemonic(cosmos12WordsPrivateKey)
cant use cosmos sdk with pk, needs mnemonic
any chance you could dm
const chainId = "injective-1";
await window.keplr.enable(chainId);
const offlineSigner = window.keplr.getOfflineSigner(chainId);
const accounts = await offlineSigner.getAccounts();
Anyone is used to transfer TX on keply wallet?
someone can help me how to deploy create coin on inj ? , dm please
open dm
check your dm pls
@lyric socket deter guy 😉
Hello, how can I have testnet fund to test ? Faucet seems offline
Is tesnet still under maintanance ? All the query was working with the other day are giving me net::ERR_TIMED_OUT
Yes, testnet is down for maintanance
injective testnet is down now ?
it’s under maintenance ahead of the upgrade
Inj explorer is down...
We know, we are working on it
Unfortunately, it's often down 😞
can anyone recommend a good private prc? thanks
any updates? @sweet ether @broken jacinth
We could also ask @obsidian moth
Anyone here have an issue where the mnemonic derives a different address using the DirectSecp256k1HdWallet function from the cosmos sdk?
My node has been synchronized to the latest height, and IP:26657 can also be accessed. However, when I use the API to request jsonrpc, it does not take effect. Do I need to change any configuration? Does anyone know if you can help me?
how do you use them, metamask or keplr pls ?
script lol
cli you mean ?
Hello, i have an error when i'm trying to use token factory in typescript of the injective docs on the Mainnet : TypeError: Cannot read properties of undefined (reading 'toHexString'). Docs : core-modules/token-factory
Hey guys, just wanna ask how do i query a newly created pools on injective chain.
Im checking injective typescript but couldn't find anything helpful for that.
Can anyone help pls?
Hey, is keplr using m/44'/60'/0'/0/{index} as default path for INJ?
I'm coding using cosmrs, bip32 and tiny-bip39, but I can't derive the same wallet from my KEPLR. It is working normally for OSMOS and COSMOS ( that uses m/118'/60'/0'/0/{index} ). But INJ isn't working for m/44'/60'/0'/0/{index} neither m/44'/118'/0'/0/{index}.
are you trying on the mainnet ?
yeah but it solved. Thanks !
can i dm you @Antoine ?
yeah
check your dm pls ^^
Hello Sirs i got a error with a transaction
signature verification failed; please verify account number (182978) and chain-id (injective-888): unauthorized
I am getting this using the testnet, everything shoulda be fine.
What could be my mistake?
you should use injective-ts to interact with Injective
@broken jacinth, sorry to bother you i have another question, i don't really figure out how to send transaction (call function) to contract in typescript. For instance i'm trying to create pair from astroport contract, reproducing this tx : https://explorer.injective.network/transaction/0x4e392a25c16e0780694d1d6c6e0bba87b0910be5f4dcea889b776f6fd08705d3/
You can find examples in the TS SDK documentation https://docs.ts.injective.network/
I wanted to code with RUST
. Won't cosmrs work? As INJ was built with COSMOS? Every other network worked normally. I can fetch balances with no problem (aside the DenomMetadata I told you), but getting the derivation diff right now
hey brother , can you explain your solution pls
later
I don't understand what CW20_ADAPTER_CONTRACT is @broken jacinth
like with the factory denom, how I get this ?
I try this but impossible got error adresseInjected not good format 😢
"const dstInjectiveAddress = "factory/inj164jk46xjwsn6x4rzu6sfuvtlzy2nza0nxfj0nz/max";
/** Account Details **/
const accountDetails = await new ChainRestAuthApi(restEndpoint).fetchAccount(
injectiveAddress
);
/** Prepare the Message */
const amount = {
amount: new BigNumberInBase(0.01).toWei().toFixed(),
denom: "inj",
};
const msg = MsgSend.fromJSON({
amount,
srcInjectiveAddress: injectiveAddress,
dstInjectiveAddress: dstInjectiveAddress,
});
"
I need to use MsgMint ?
Dear Sir/Madam,
I encountered some problem in injective bridge. I want to transfer INJ in the INJ Hub wallet to Keplr, however, the fee in signature shows extremely high amount of INJ. I also found out one thing is the Injective Hub incorrectly identifies my rabby wallet as metamask wallet, so my virtual INJ wallet address on INJ side, the coins are on my Rabby wallet, but when i want to transfer INJ coins, sometimes the site says I haven't installed wallet yet because I dont have metamask. Is it related to the extremely high amount of INJ fee in transaction? I hope to resolve this issue as I need to mobilize the INJ coins in the wallet to have benefits to the community. Thanks for help. I urgently need this.
Best regards,
Levi
Rabby wallet is not supported, please use a supported wallet when connecting to injective dapps, otherwise you can encounter such issues
i understand, but the INJ is already in the wallet... i cannot transfer out the coins
so my question is how we can buy the token with factory/creator/name
You can always import wallet to a supported one
yes, if i import the new wallet, the inj bridge/wallet wont show the balance
i think the 'virtual' inj address is associated with my wallet
now the inj balance is in that rabby account
i hope to mobilize those inj coins
Hello, anyone who knows how to deploy CW20 here ? I have factory denom but I don't really understand then
New dev Looking for an experienced Inj dev i can talk to pls dm
You got that error because, as the error says, you are providing a string as an account address that is not an account address
Ok thx for the reponse, So how is it possible to swap a token in /factory/creator/name format with MsgSend?
MsgSend is to send tokens. I recommend you to check the API docs
Send to a single Wallet or interact with a token contrat ?
I search for maybe 5hours 😭 so need to use MsgMint or MsgExect ? i don't found a solution for swap token
MsgSend is use maybe for send token to a wallet-wallet, i just wan't a swapMEthod
So do I, my soul is leaving my body after a day looking to solve this issue
Natively in Injective there is not such a thing as "swap". There might be contracts that provide that functionality, and in such cases you should interact with the contract.
Did somebody in the community developed a script to swap tokens ?
i'm trying and testing the INJ chain, but when I need to put my inj wallet address and private key, what should I use ? keplr ? metamask ? or other way ?
#❓︲dev-questions message
no one can enlight me pls 
so where do you find the private pass of your inj adress wallet via keplr
I want to track new tokens from network, I'm streaming the tx but I think the creation tx doesn't show in stream_txs() is it true? any one know how can I make it?
why do you make the network in RUST, but don't make an SDK in RUST too? 😢 😢 😢
I created a token but thre is no icon, and I dont know how to send png icon file? so can you please help? Can I send DM?