!uaYUrKBueiKUurHliJ:matrix.org

Subscan Official

142 Members
6 Servers

Load older messages


SenderMessageTime
11 Oct 2021
@peterblockman:matrix.orgPeter BlockmanHi guys, how could I decode AccountId hash to ss58-format address using nodejs? thank you in advance 00:59:49
@peterblockman:matrix.orgPeter BlockmanNever mind, just use decodeAddress from polkadot crypto. 😅01:27:16
12 Oct 2021
@day7:matrix.orgAnton Khvorov | Nova Wallet changed their display name from Anton Khvorov | Fearless Wallet to Anton Khvorov | Nova Wallet.09:40:41
13 Oct 2021
@erussel:matrix.orgRuslan Rezin | Nova Wallet changed their display name from Ruslan Rezin | Fearless Wallet to Ruslan Rezin | Nova Wallet.20:09:36
15 Oct 2021
@greatmartial:matrix.orgGreat Martial joined the room.08:17:36
@greatmartial:matrix.orgGreat MartialHi guys, I hope to get data through subscan api, but don‘t know what is the limit value of parameter. thanks08:24:48
@greatmartial:matrix.orgGreat MartialSnipaste_2021-10-15_16-21-35.png
Download Snipaste_2021-10-15_16-21-35.png
08:24:59
@greatmartial:matrix.orgGreat Martialo! I find it in the count of the response.08:37:19
@isthisallowed:matrix.orgisthisallowedTest11:44:51
@certhum-jim:matrix.orgJim | CertHum
In reply to @certhum-jim:matrix.org
Hi Subscan -- My company runs a collator node on Moonriver, and twice in the past day I've set identity on chain, and the Staking page displays the company name for a few hours and then disappears. The info is still on chain, and on my individual account page the data fields exc. Name are still showing.
Hi Way Sun , thanks for getting back to me, and above is details of the issue with some links higher in chat on Sept. 28th.
11:56:07
17 Oct 2021
@phluid:matrix.orgphluid joined the room.19:29:47
@phluid:matrix.orgphluidIt looks like if you have stash&controller set up and staking rewards directed to the controller, then since 3 days ago the rewards are no longer listed under the controller in Subscan. Instead one must go through the stash address and click on the "Nominator" role or the "Click [here] to view more relevant data." link under the Reward&Slash tab. The rewards previous to that are still listed under the controller too. Dunno if this is a purposeful change or a bug.19:34:19
18 Oct 2021
@stakelink:matrix.orgstakelink

Hi, I'm having a very strange problem.

I'm doing this query:

curl -X POST -H "x-api-key: YOUR_KEY" -H "Content-Type: application/json" https://polkadot.api.subscan.io/api/scan/staking/validator -d '{"stash":"16SpacegeUTft9v3ts27CEC3tJaxgvE4uZeCctThFH3Vb24p"}'

but when I do with an other validator, I get data null:

curl -X POST -H "x-api-key: YOUR_KEY" -H "Content-Type: application/json" https://polkadot.api.subscan.io/api/scan/staking/validator -d '{"stash":"1sh6y8SMuseeuxn8JyW4eUHbJrLevi7ASH1TJQqb3DFjAYe"}'

can someone explain me what I'm missing...

09:56:31
@stakelink:matrix.orgstakelink *

Hi, I'm having a very strange problem.

I'm doing this query:

curl -X POST -H "x-api-key: YOUR_KEY" -H "Content-Type: application/json" https://polkadot.api.subscan.io/api/scan/staking/validator -d '{"stash":"16SpacegeUTft9v3ts27CEC3tJaxgvE4uZeCctThFH3Vb24p"}'

but when I do with an other validator, I get data null:

curl -X POST -H "x-api-key: YOUR_KEY" -H "Content-Type: application/json" https://polkadot.api.subscan.io/api/scan/staking/validator -d '{"stash":"1sh6y8SMuseeuxn8JyW4eUHbJrLevi7ASH1TJQqb3DFjAYe"}'

can someone explain me what I'm missing...

09:56:48
@stakelink:matrix.orgstakelink

I'm getting this:

{"code":0,"message":"Success","generated_at":1634552068,"data":{"info":null}}

10:14:50
19 Oct 2021
@imstar15:matrix.orgimstar15

Hi, I call this interface.

curl -X POST 'https://rococo.api.subscan.io/api/scan/parachain/contributes' \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: YOUR_KEY' \
  --data-raw '{
    "page": 0,
    "row": 2
  }'

And get these results, What does the memo field mean? How is this field obtained from the chain?

{
  "code": 0,
  "message": "Success",
  "generated_at": 1628587129,
  "data": {
    "contributes": [
      {
        "ID": 3,
        "fund_id": "100-1",
        "para_id": 100,
        "who": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3",
        "who_display": {
          "address": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3",
          "display": "",
          "judgements": null,
          "account_index": "",
          "identity": false,
          "parent": null
        },
        "contributed": "50000000000000",
        "block_num": 4213,
        "block_timestamp": 1618484454,
        "extrinsic_index": "4213-2",
        "status": 1,
        "memo": ""
      },
      ...
}
07:25:47
@imstar15:matrix.orgimstar15 memo is added by calling crowdloan.addMemo09:13:52
@imstar15:matrix.orgimstar15image.png
Download image.png
10:24:29
@imstar15:matrix.orgimstar15Sometimes you can't query the contribution with the who parameter. 10:24:34
@imstar15:matrix.orgimstar15image.png
Download image.png
10:25:14
@onianseyed:matrix.orgonianseyed Hi, it looks like the bond-list API endpoint (https://docs.api.subscan.io/#bond-list) is not returning recent staking.Bonded events. I suspect this could be caused by a data model change on the Polkadot API side (https://polkadot.js.org/docs/substrate/events#bondedaccountid32-u128), where the amount is now a u128 13:10:02
@thetokenblonde:matrix.orgMegan Skye | Darwinia | Evolution Land | Subscan Team changed their display name from Megan Skye Phoenix to Megan Skye | Darwinia | Evolution Land | Subscan Team.17:37:56
20 Oct 2021
@freehere:matrix.orgBruce | Subscan onianseyed: thank you feedback,We will fix it as soon as possible 01:25:09
@imstar15:matrix.orgimstar15

Hi, I want to use the who parameter to call the api/scan/parachain/contributes interface to query the user's corresponding contribution.

I use the who parameter to send the request and cannot find the extrinsic, but I can get the corresponding extrinsic without the who parameter.

  1. Request with who
    curl --location --request POST 'https://kusama.api.subscan.io/api/scan/parachain/contributes'

--header 'Content-Type: text/plain'

--data-raw '{ "fund_id": "2087-37", "row": 100, "page": 0, "from_history": true, "who": "DrCFRy8rE75gGv7WydEtoGaL2AR6ccU3cJChdiaf3XUwSvH" }'

result:

{
    "code": 0,
    "message": "Success",
    "generated_at": 1634693265,
    "data": {
        "contributes": null,
        "count": 0
    }
}
  1. Request without who
curl --location --request POST 'https://kusama.api.subscan.io/api/scan/parachain/contributes' \
--header 'Content-Type: text/plain' \
--data-raw '{ "fund_id": "2087-37", "row": 100, "page": 4, "order": "block_num", "from_history": true }'

result:

{
    "code": 0,
    "message": "Success",
    "generated_at": 1634693520,
    "data": {
        "contributes": [
            ...
            {
                "fund_id": "2087-37",
                "para_id": 2087,
                "who": "DrCFRy8rE75gGv7WydEtoGaL2AR6ccU3cJChdiaf3XUwSvH",
                "contributed": "100000000000",
                "contributing": "100000000000",
                "block_num": 9721883,
                "block_timestamp": 1634636862,
                "extrinsic_index": "9721883-2",
                "status": 1,
                "memo": "World",
                "who_display": {
                    "address": "DrCFRy8rE75gGv7WydEtoGaL2AR6ccU3cJChdiaf3XUwSvH",
                    "display": "",
                    "judgements": null,
                    "account_index": "",
                    "identity": false,
                    "parent": null
                }
            },
            ...
        "count": 952
    }
}

why is that?

01:33:46
@imstar15:matrix.orgimstar15 *

Hi, I want to use the who parameter to call the api/scan/parachain/contributes interface to query the user's corresponding contribution.

I use the who parameter to send the request and cannot find the extrinsic, but I can get the corresponding extrinsic without the who parameter.

  1. Request with who
    curl --location --request POST 'https://kusama.api.subscan.io/api/scan/parachain/contributes'

--header 'Content-Type: text/plain'

--data-raw '{ "fund_id": "2087-37", "row": 100, "page": 0, "from_history": true, "who": "DrCFRy8rE75gGv7WydEtoGaL2AR6ccU3cJChdiaf3XUwSvH" }'

result:

{
    "code": 0,
    "message": "Success",
    "generated_at": 1634693265,
    "data": {
        "contributes": null,
        "count": 0
    }
}
  1. Request without who
curl --location --request POST 'https://kusama.api.subscan.io/api/scan/parachain/contributes' \
--header 'Content-Type: text/plain' \
--data-raw '{ "fund_id": "2087-37", "row": 100, "page": 4, "order": "block_num", "from_history": true }'

result:

{
    "code": 0,
    "message": "Success",
    "generated_at": 1634693520,
    "data": {
        "contributes": [
            ...
            {
                "fund_id": "2087-37",
                "para_id": 2087,
                "who": "DrCFRy8rE75gGv7WydEtoGaL2AR6ccU3cJChdiaf3XUwSvH",
                "contributed": "100000000000",
                "contributing": "100000000000",
                "block_num": 9721883,
                "block_timestamp": 1634636862,
                "extrinsic_index": "9721883-2",
                "status": 1,
                "memo": "World",
                "who_display": {
                    "address": "DrCFRy8rE75gGv7WydEtoGaL2AR6ccU3cJChdiaf3XUwSvH",
                    "display": "",
                    "judgements": null,
                    "account_index": "",
                    "identity": false,
                    "parent": null
                }
            },
            ...
        "count": 952
    }
}
01:35:05
@imstar15:matrix.orgimstar15 *

Hi, I want to use the who parameter to call the api/scan/parachain/contributes interface to query the user's corresponding contribution.

I use the who parameter to send the request and cannot find the extrinsic, but I can get the corresponding extrinsic without the who parameter.

  1. Request with who
    curl --location --request POST 'https://kusama.api.subscan.io/api/scan/parachain/contributes'

--header 'Content-Type: text/plain'

--data-raw '{ "fund_id": "2087-37", "row": 100, "page": 0, "from_history": true, "who": "DrCFRy8rE75gGv7WydEtoGaL2AR6ccU3cJChdiaf3XUwSvH" }'

result:

{
    "code": 0,
    "message": "Success",
    "generated_at": 1634693265,
    "data": {
        "contributes": null,
        "count": 0
    }
}
  1. Request without who
curl --location --request POST 'https://kusama.api.subscan.io/api/scan/parachain/contributes' \
--header 'Content-Type: text/plain' \
--data-raw '{ "fund_id": "2087-37", "row": 100, "page": 4, "order": "block_num", "from_history": true }'

result:

{
    "code": 0,
    "message": "Success",
    "generated_at": 1634693520,
    "data": {
        "contributes": [
            ...
            {
                "fund_id": "2087-37",
                "para_id": 2087,
                "who": "DrCFRy8rE75gGv7WydEtoGaL2AR6ccU3cJChdiaf3XUwSvH",
                "contributed": "100000000000",
                "contributing": "100000000000",
                "block_num": 9721883,
                "block_timestamp": 1634636862,
                "extrinsic_index": "9721883-2",
                "status": 1,
                "memo": "World",
                "who_display": {
                    "address": "DrCFRy8rE75gGv7WydEtoGaL2AR6ccU3cJChdiaf3XUwSvH",
                    "display": "",
                    "judgements": null,
                    "account_index": "",
                    "identity": false,
                    "parent": null
                }
            },
            ...
        "count": 952
    }
}

why is that?

01:36:24
@kezjo:matrix.orgChris-OAK Network joined the room.01:49:43
@aurevoirxavier:matrix.orgXavier - Darwinia.Network joined the room.02:15:31
@dominik_89:matrix.orgdom | Interlay joined the room.12:32:56
22 Oct 2021
@freehere:matrix.orgBruce | Subscan imstar15: It's fixed here, thanks for your feedback 07:39:38

There are no newer messages yet.


Back to Room List